Skip to content

Commit

Permalink
Move regex replacement into package-extract
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Sep 23, 2024
1 parent 864d46c commit c7f4912
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 46 deletions.
2 changes: 1 addition & 1 deletion lib/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"clean": "rimraf -g build browser bin/*.map && mkdir browser",
"parser": "node bin/peggy.js -c src/opts.mjs",
"examples": "node bin/peggy.js -c docs/js/options.js docs/js/examples.peggy",
"set_version": "node ./tools/set_version.mjs",
"set_version": "package-extract -o lib/version.js -dcs && package-extract -o docs/index.html -r '(?<=https:\\/\\/unpkg.com\\/peggy@)(?<version>\\d+\\.\\d+\\.\\d+)(?=\\/browser\\/peggy\\.min\\.js)'",
"lint": "eslint .",
"ts": "tsc --build tsconfig.json",
"docs": "cd docs && npm run build",
Expand All @@ -50,11 +50,11 @@
"audit": "npm run test && npm run benchmark",
"tidy": "rimraf build",
"start": "cd docs && npm start",
"version": "npm run set_version && npm run parser && npm run parser && git add lib/version.js lib/parser.js"
"version": "npm run set_version && npm run parser && npm run parser && git add lib/version.js lib/parser.js docs/index.html"
},
"devDependencies": {
"@peggyjs/eslint-config": "^4.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-commonjs": "^26.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-multi-entry": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.4",
Expand All @@ -71,7 +71,7 @@
"express": "4.21.0",
"glob": "^11.0.0",
"jest": "^29.7.0",
"package-extract": "2.1.1",
"package-extract": "2.2.0",
"rimraf": "^5.0.10",
"rollup": "^4.22.4",
"rollup-plugin-ignore": "1.0.10",
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions tools/set_version.mjs

This file was deleted.

0 comments on commit c7f4912

Please sign in to comment.