Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps #16

Merged
merged 3 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .eslintrc.cjs

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ jobs:
NODE: ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
cache: pnpm
- run: pnpm install
- run: npm run coverage
- run: npm run lint
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import cjs from "@peggyjs/eslint-config/flat/cjs.js";
import modern from "@peggyjs/eslint-config/flat/modern.js";
import module from "@peggyjs/eslint-config/flat/module.js";

export default [
{
ignores: [
"**/*.d.ts",
"node_modules/**",
"vendor/**",
],
},
{
...module,
...modern,
},
cjs,
];
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import {
regexpClassEscape,
stringEscape,
} from "../vendor/peggy/utils.js";
} from "peggy/lib/compiler/utils.js";
import asts from "peggy/lib/compiler/asts.js";
import peggy from "peggy";

Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "lib/index.js",
"type": "module",
"scripts": {
"lint": "eslint . --ext js",
"lint": "eslint .",
"test": "ava",
"coverage": "c8 ava",
"dev:watch": "chokidar --initial --ignore \"coverage/**\" --ignore \"node_modules/**\" -c \"npm run coverage\" \"**/*.js\" \"**/*.json\" \"**/*.css\"",
Expand All @@ -27,21 +27,22 @@
"repository": "peggyjs/peggy-tracks",
"bugs": "https://github.com/peggyjs/peggy-tracks/issues",
"dependencies": {
"commander": "^11.1.0",
"peggy": "^3.0.2"
},
"engines": {
"node": ">=16"
"commander": "^12.0.0",
"peggy": "^4.0.0"
},
"devDependencies": {
"@peggyjs/eslint-config": "^3.0.6",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"ava": "^5.3.1",
"c8": "^8.0.1",
"@peggyjs/eslint-config": "^3.2.2",
"@types/node": "^20.11.19",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"ava": "^6.1.1",
"c8": "^9.1.0",
"chokidar-cli": "^3.0.0",
"eslint": "^8.53.0",
"typescript": "^5.2.2"
"eslint": "^8.56.0",
"typescript": "^5.3.3"
},
"packageManager": "pnpm@8.15.3",
"engines": {
"node": ">=18"
}
}
Loading
Loading