Skip to content

Commit 9dbbb42

Browse files
committed
Yarn doesn't need 'run' for running package scripts
1 parent 6d89243 commit 9dbbb42

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@
1515
"mocha_reporter": "dot"
1616
},
1717
"scripts": {
18-
"clean": "rm -rf generated dist lib coverage && yarn run clean:dist",
18+
"clean": "rm -rf generated dist lib coverage && yarn clean:dist",
1919
"clean:dist": "git checkout -- dist",
2020
"compile:browser": "browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p headerify -t babelify",
2121
"compile:browser:test": "mkdir -p generated && browserify regression/browser-helper.js --outfile $npm_package_config_test_bundle -t babelify -t coffeeify --extension=\".coffee\" -t require-globify --ignore-missing",
2222
"compile:node": "babel src -d lib",
23-
"compile": "yarn run compile:node && yarn run compile:browser && yarn run compile:browser:test",
23+
"compile": "yarn compile:node && yarn compile:browser && yarn compile:browser:test",
2424
"cover": "nyc --reporter=lcov --reporter=text-summary --require babel-core/register _mocha --ui mocha-given --reporter $npm_package_config_mocha_reporter --compilers coffee:coffee-script --recursive regression/node-helper.coffee regression/src",
2525
"cover:report": "codeclimate-test-reporter < coverage/lcov.info",
2626
"style": "standard --fix",
2727
"test": "mocha --ui mocha-given --reporter $npm_package_config_mocha_reporter --compilers js:babel-core/register,coffee:coffee-script --recursive regression/node-helper.coffee regression/src",
28-
"test:all": "yarn test:unit && yarn test && yarn run test:browser && yarn run test:example && yarn run test:typescript",
28+
"test:all": "yarn test:unit && yarn test && yarn test:browser && yarn test:example && yarn test:typescript",
2929
"test:browser": "testem ci",
3030
"test:unit": "teenytest",
31-
"test:ci": "yarn run clean && yarn run compile && yarn run style && yarn run test:all && yarn run clean:dist && echo \"All done!\"",
31+
"test:ci": "yarn clean && yarn compile && yarn style && yarn test:all && yarn clean:dist && echo \"All done!\"",
3232
"test:typescript": "tsc --outDir generated/typescript -p regression/typescript && node generated/typescript/test.js",
3333
"test:example:webpack": "cd examples/webpack && yarn install && yarn test",
3434
"test:example:node": "cd examples/node && yarn install && yarn test",
3535
"test:example:lineman": "cd examples/lineman && yarn install && yarn test",
3636
"test:example:babel": "cd examples/babel && yarn install && yarn test",
37-
"test:example": "yarn run test:example:node && yarn run test:example:lineman && yarn run test:example:webpack && yarn run test:example:babel",
37+
"test:example": "yarn test:example:node && yarn test:example:lineman && yarn test:example:webpack && yarn 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",
40-
"preversion": "git pull --rebase && yarn run test:ci",
41-
"version": "yarn run version:write && yarn run compile && git add dist src/version.js",
42-
"postversion": "git push --tags && yarn run version:changelog && git push && npm publish",
40+
"preversion": "git pull --rebase && yarn test:ci",
41+
"version": "yarn version:write && yarn compile && git add dist src/version.js",
42+
"postversion": "git push --tags && yarn version:changelog && git push && npm publish",
4343
"prepare": "yarn compile"
4444
},
4545
"babel": {

0 commit comments

Comments
 (0)