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

fix: makes apg script cross-platform #143

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions apgwrapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as apgModule from "apg-js";
baywet marked this conversation as resolved.
Show resolved Hide resolved

apgModule.apg(process.argv.slice(2));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"scripts": {
"prepublishOnly": "npm run build",
"grammar:compile": "./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src",
"grammar:compile": "node ./apgwrapper.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src",
"build": "npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'",
Expand Down