Skip to content

Commit

Permalink
Add "prepare" hook for --app projects so they'll build on `npm in…
Browse files Browse the repository at this point in the history
…stall`.

Closes #1042.
  • Loading branch information
dherman committed May 19, 2024
1 parent 78c14ce commit 56d07f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/create-neon/data/templates/manifest/scripts.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"postcross-build": "neon dist -m /target < cross.log",
"debug": "npm run cargo-build --",
"build": "npm run cargo-build -- --release",
"cross": "npm run cross-build -- --release"{{#if packageSpec.library}},
"cross": "npm run cross-build -- --release",{{#if packageSpec.library}}
"prepack": "{{#eq packageSpec.library.lang compare="ts"}}tsc && {{/eq}}neon update",
"version": "neon bump --binaries platforms && git add ."{{/if}}
"version": "neon bump --binaries platforms && git add ."{{else}}
"prepare": "npm run build"{{/if}}
}

0 comments on commit 56d07f9

Please sign in to comment.