Skip to content

Commit

Permalink
chore: add .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Jan 23, 2024
1 parent 3bddb9d commit a53becc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://github.com/webpack/webpack/issues/14532
NODE_OPTIONS=--openssl-legacy-provider
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
run: pnpm build

- name: Test
env:
NODE_OPTIONS: --openssl-legacy-provider
run: pnpm test

- name: Lint
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
run: pnpm build

- name: Test
env:
NODE_OPTIONS: --openssl-legacy-provider
run: pnpm test

- name: Test Node.js v16
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"scripts": {
"build": "pkgroll --target=node16.19.0",
"test": "tsx tests",
"dev": "tsx watch --conditions=development tests",
"test": "tsx --env-file .env tests",
"dev": "tsx watch --env-file .env --conditions=development tests",
"lint": "eslint --cache .",
"type-check": "tsc --noEmit",
"prepack": "pnpm build && clean-pkg-json"
Expand Down

0 comments on commit a53becc

Please sign in to comment.