Skip to content

Commit

Permalink
Use local path within the root directory
Browse files Browse the repository at this point in the history
Otherwise, npm will not hoist the `scripts` dependencies in the
node_modules root directory, but within node_modules/@wordpress/scripts/node_modules
which won't work.

This means the @wordpress/scripts package (and other deps) need
to be copied here for testing purposes. See
WordPress/gutenberg#12437 (comment)
  • Loading branch information
oandregal committed Dec 14, 2018
1 parent 8ebf50b commit 6eab29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
},
"homepage": "https://github.com/nosolosw/blocksettingsmenu-plugin#readme",
"devDependencies": {
"@wordpress/scripts": "file:../gutenberg/packages/scripts"
"@wordpress/scripts": "file:./scripts"
}
}

0 comments on commit 6eab29b

Please sign in to comment.