Skip to content

Commit ba0ef74

Browse files
committed
Framework: Remove packages build from build, dev scripts
1 parent 5d35c02 commit ba0ef74

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@
157157
"clean:packages": "rimraf ./packages/*/build ./packages/*/build-module ./packages/*/build-style ./packages/*/node_modules",
158158
"prebuild:packages": "npm run clean:packages && lerna run build",
159159
"build:packages": "node ./bin/packages/build.js",
160-
"build": "npm run build:packages && wp-scripts build",
160+
"build": "wp-scripts build",
161161
"check-engines": "wp-scripts check-engines",
162162
"check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2\" \"wp-scripts check-licenses --dev\"",
163163
"precheck-local-changes": "npm run docs:build",
164164
"check-local-changes": "( git diff -U0 | xargs -0 node bin/process-git-diff ) || ( echo \"There are local uncommitted changes after one or both of 'npm install' or 'npm run docs:build'!\" && exit 1 );",
165165
"predev": "npm run check-engines",
166-
"dev": "npm run build:packages && concurrently \"wp-scripts start\" \"npm run dev:packages\"",
166+
"dev": "wp-scripts start",
167167
"dev:packages": "node ./bin/packages/watch.js",
168168
"docs:build": "node ./docs/tool && node ./bin/update-readmes",
169169
"fixtures:clean": "rimraf \"packages/e2e-tests/fixtures/blocks/*.+(json|serialized.html)\"",

webpack.config.js

-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ module.exports = {
4040
library: [ 'wp', '[name]' ],
4141
libraryTarget: 'this',
4242
},
43-
// Despite being empty, this must exist as an entry to override the default
44-
// configuration. Gutenberg does not inherit the same Webpack rules as in
45-
// the default. Notably, it does not require Babel processing because the
46-
// files are transpiled by `npm run build:packages` before being processed
47-
// by Webpack.
48-
module: {},
4943
plugins: [
5044
...defaultConfig.plugins,
5145
new DefinePlugin( {

0 commit comments

Comments
 (0)