Skip to content

Commit

Permalink
set CI=true for the node provider (#382)
Browse files Browse the repository at this point in the history
* set CI=true for the node provider

* update tests

* update yarn berry lockfile
  • Loading branch information
coffee-cup committed Aug 4, 2022
1 parent 8d79626 commit cc0163c
Show file tree
Hide file tree
Showing 28 changed files with 1,215 additions and 878 deletions.
497 changes: 408 additions & 89 deletions examples/node-yarn-berry/.pnp.cjs

Large diffs are not rendered by default.

786 changes: 0 additions & 786 deletions examples/node-yarn-berry/.yarn/releases/yarn-3.2.1.cjs

This file was deleted.

783 changes: 783 additions & 0 deletions examples/node-yarn-berry/.yarn/releases/yarn-3.2.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/node-yarn-berry/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarnPath: .yarn/releases/yarn-3.2.1.cjs
yarnPath: .yarn/releases/yarn-3.2.2.cjs
2 changes: 1 addition & 1 deletion examples/node-yarn-berry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
"packageManager": "yarn@3.2.1",
"packageManager": "yarn@3.2.2",
"engines": {
"node": "16.x"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/node-yarn-berry/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ __metadata:

"typescript@patch:typescript@^4.7.4#~builtin<compat/typescript>":
version: 4.7.4
resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"
resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=f456af"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
Expand Down
1 change: 1 addition & 0 deletions src/providers/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ impl NodeProvider {
EnvironmentVariables::from([
("NODE_ENV".to_string(), "production".to_string()),
("NPM_CONFIG_PRODUCTION".to_string(), "false".to_string()),
("CI".to_string(), "true".to_string()),
])
}

Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__bun.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ expression: plan
"cmd": "bun run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__bun_no_start.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ expression: plan
"cmd": "bun index.ts"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__bun_web_server.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ expression: plan
"cmd": "bun index.ts"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__node.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "npm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "npm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__node_main_file.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "node src/index.js"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "node index.js"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__node_monorepo.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ expression: plan
},
"start": {},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__node_no_lockfile.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "npm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__node_no_scripts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "node index.js"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "npm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__npm.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "npm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "node index.js"
},
"variables": {
"CI": "true",
"NODE_ENV": "test",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__pnpm.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "pnpm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "pnpm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__pnpm_v7.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "pnpm run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__procfile.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "node index.js"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__yarn.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "yarn run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/generate_plan_tests__yarn_berry.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ expression: plan
"cmd": "yarn run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ expression: plan
"cmd": "yarn run start"
},
"variables": {
"CI": "true",
"NODE_ENV": "production",
"NPM_CONFIG_PRODUCTION": "false"
},
Expand Down

0 comments on commit cc0163c

Please sign in to comment.