Skip to content

Commit 297b54d

Browse files
committed
feat: update bootstrap to include entrypoint dep
Now bootstrap will install scripts as devDependency and entrypoint as dependency.
1 parent 3577d7b commit 297b54d

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

examples/plugin/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"devDependencies": {
1010
"autoprefixer": "^9.1.5",
1111
"node-sass": "^4.9.3",
12+
"@wpackio/scripts": "^1.2.1",
1213
"typescript": "^3.1.3"
1314
},
1415
"scripts": {
@@ -18,7 +19,7 @@
1819
},
1920
"dependencies": {
2021
"@types/webpack-env": "^1.13.6",
21-
"@wpackio/scripts": "^1.2.1",
22+
"@wpackio/entrypoint": "^1.2.1",
2223
"react": "^16.5.2",
2324
"react-bootstrap": "^1.0.0-beta.1",
2425
"react-dom": "^16.5.2",

examples/theme/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
"license": "MIT",
88
"private": true,
99
"devDependencies": {
10-
"node-sass": "^4.9.3"
10+
"node-sass": "^4.9.3",
11+
"@wpackio/scripts": "^1.2.1"
1112
},
1213
"scripts": {
1314
"bootstrap": "wpackio-scripts bootstrap",
1415
"exbuild": "wpackio-scripts build",
1516
"exstart": "wpackio-scripts start"
1617
},
1718
"dependencies": {
18-
"@wpackio/scripts": "^1.2.1"
19+
"@wpackio/entrypoint": "^1.2.1"
1920
}
2021
}

packages/entrypoint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wpackio/entrypoint",
3-
"version": "0.0.1",
3+
"version": "1.2.1",
44
"description": "An entrypoint for webpack which is added automatically for safe publicPath.",
55
"keywords": [
66
"wordpress",

packages/scripts/src/scripts/Bootstrap.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,14 @@ module.exports = {
308308
}
309309
});
310310

311-
// Add dependencies of @wpackio/scripts if needed
311+
// Add dependencies of @wpackio/entrypoint and @wpackio/scripts if needed
312312
const dependencies: string[] = [];
313-
const devDependencies: string[] = [];
313+
const devDependencies: string[] = ['@wpackio/scripts'];
314314
if (
315315
!packageFileData.dependencies ||
316-
!packageFileData.dependencies['@wpackio/scripts']
316+
!packageFileData.dependencies['@wpackio/entrypoint']
317317
) {
318-
dependencies.push('@wpackio/scripts');
318+
dependencies.push('@wpackio/entrypoint');
319319
}
320320
// If has Sass
321321
if (projectContext.hasSass === 'true') {

0 commit comments

Comments
 (0)