Skip to content

Commit

Permalink
chore: use cross-env to set node options
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Oct 2, 2024
1 parent 8c401df commit 29971c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,6 @@ jobs:
- id: typecheck
if: steps.test-files-check.outputs.files_exists == 'true'
name: Run typecheck
env:
NODE_OPTIONS: --experimental-strip-types --experimental-transform-types
run: yarn typecheck
build:
needs:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/typescript-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ jobs:
run: yarn build
- id: typecheck
name: Run typecheck
env:
NODE_OPTIONS: --experimental-strip-types --experimental-transform-types
run: yarn typecheck
- id: typecheck-build
name: Run typecheck-build
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"eslint --exit-on-fatal-error",
"cspell lint --color --no-progress --relative $@"
],
"**/*.{cts,mts,ts}": "vitest run --changed --typecheck --mode=typecheck",
"**/*.{cts,mts,ts}": "yarn test:run --changed --typecheck --mode=typecheck",
"**/yarn.lock": "yarn dedupe --check",
"src/**/*.ts": ["yarn build", "bash -c tsc -p tsconfig.build.json"]
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
"prepublishOnly": "toggle-scripts -prepack",
"release": "bash ./scripts/release.sh",
"remark": "remark .",
"test": "vitest run --typecheck --mode=typecheck",
"typecheck": "yarn test",
"typecheck:watch": "vitest --typecheck --mode=typecheck"
"test": "yarn test:run --typecheck --mode=typecheck",
"test:run": "cross-env NODE_OPTIONS=\"--conditions pkg-types --experimental-strip-types --experimental-transform-types\" vitest run",
"typecheck": "yarn test"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.15.4",
Expand Down

0 comments on commit 29971c1

Please sign in to comment.