Skip to content

Commit acfd124

Browse files
committed
Don't regenerate pruned codegen modules in scripts
Elm Pages will run `elm-codegen install` unless we set an env var telling it not to do so.
1 parent 56161a9 commit acfd124

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"bin": "dist/elm-open-api.js",
77
"type": "module",
88
"scripts": {
9-
"dev": "elm-pages run src/Cli.elm",
10-
"build": "elm-pages bundle-script src/Cli.elm --output dist/elm-open-api.js --debug",
9+
"dev": "SKIP_ELM_CODEGEN=true elm-pages run src/Cli.elm",
10+
"build": "SKIP_ELM_CODEGEN=true elm-pages bundle-script src/Cli.elm --output dist/elm-open-api.js --debug",
1111
"review": "elm-review",
1212
"review:watch": "elm-review --watch --fix",
1313
"format": "elm-format src tests --validate",
1414
"test": "elm-test",
15-
"test:gen": "elm-pages run src/TestGenScript.elm",
15+
"test:gen": "SKIP_ELM_CODEGEN=true elm-pages run src/TestGenScript.elm",
1616
"test:watch": "elm-test --watch",
1717
"pub": "npm run build && npm publish"
1818
},

0 commit comments

Comments
 (0)