Skip to content

Commit 6828971

Browse files
committed
package scripts are run in subshells
There's no need to cd back to original directory because the package script is executed within a subshell. Once the script completes, final working directory is still unchanged
1 parent 27afe6c commit 6828971

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"test:unit": "teenytest",
3131
"test:ci": "yarn run clean && yarn run compile && yarn run style && yarn run test:all && yarn run clean:dist && echo \"All done!\"",
3232
"test:typescript": "tsc --outDir generated/typescript -p regression/typescript && node generated/typescript/test.js",
33-
"test:example:webpack": "cd examples/webpack && yarn install && yarn test && cd ../..",
34-
"test:example:node": "cd examples/node && yarn install && yarn test && cd ../..",
35-
"test:example:lineman": "cd examples/lineman && yarn install && yarn test && cd ../..",
36-
"test:example:babel": "cd examples/babel && yarn install && yarn test && cd ../..",
33+
"test:example:webpack": "cd examples/webpack && yarn install && yarn test",
34+
"test:example:node": "cd examples/node && yarn install && yarn test",
35+
"test:example:lineman": "cd examples/lineman && yarn install && yarn test",
36+
"test:example:babel": "cd examples/babel && yarn install && yarn test",
3737
"test:example": "yarn run test:example:node && yarn run test:example:lineman && yarn run test:example:webpack && yarn run test:example:babel",
3838
"version:write": "echo \"export default '$npm_package_version'\" > src/version.js",
3939
"version:changelog": "if command -v github_changelog_generator &>/dev/null; then github_changelog_generator; git commit -m \"Changelog for $npm_package_version\" CHANGELOG.md; else echo Versioning requires you first run 'gem install github_changelog_generator' >&2; fi",

0 commit comments

Comments
 (0)