Skip to content

Commit

Permalink
Updates to remove @wordpress/scripts dep and utilise npx for tests in…
Browse files Browse the repository at this point in the history
…stead

This is required because of the Calypso monorepo relying on root dependencies. We don’t want to install @wordpress/scripts in Calypso root so npx is the best interim soluton. See #35379 (comment)
  • Loading branch information
getdave committed Aug 30, 2019
1 parent 7d84106 commit 75c58d5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions apps/full-site-editing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,26 @@
"build:starter-page-templates": "NODE_ENV=production npm run starter-page-templates",
"dev": "rimraf dist && npm-run-all --parallel dev:*",
"build": "rimraf dist && npm-run-all --parallel build:*",
"test:unit": "wp-scripts test-unit-js",
"test:unit:help": "wp-scripts test-unit-js --help",
"test:unit:watch": "wp-scripts test-unit-js --watch"
"test:unit": "npx --package @wordpress/scripts wp-scripts test-unit-js",
"test:unit:help": "npx --package @wordpress/scripts wp-scripts test-unit-js --help",
"test:unit:watch": "npx --package @wordpress/scripts wp-scripts test-unit-js --watch"
},
"dependencies": {
"classnames": "2.2.6"
"lodash": "^4.17.14"
},
"devDependencies": {
"@automattic/calypso-build": "file:../../packages/calypso-build",
"@wordpress/data": "^4.7.0",
"@wordpress/dom-ready": "^2.5.0",
"@wordpress/edit-post": "^3.6.0",
"@wordpress/editor": "^9.5.0",
"@wordpress/element": "^2.6.0",
"@wordpress/hooks": "^2.5.0",
"@wordpress/html-entities": "^2.5.0",
"@wordpress/i18n": "^3.6.0",
"@wordpress/keycodes": "^2.5.0",
"@wordpress/nux": "^3.5.0",
"@wordpress/scripts": "^3.4.0",
"enzyme": "^3.10.0",
"eslint": "^6.2.1",
Expand Down

0 comments on commit 75c58d5

Please sign in to comment.