@atomicsmash/cli 9.0.0-beta.12 → 9.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/blocks.d.ts.map +1 -1
- package/dist/commands/blocks.js +7 -4
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAwBhD,OAAO,OAAO,MAAM,SAAS,CAAC;AAM9B,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC,eAAO,MAAM,QAAQ,8DACuC,CAAC;AAC7D,eAAO,MAAM,UAAU,uHAC8F,CAAC;AACtH,eAAO,MAAM,OAAO,GAAa,OAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0ClC,MAAM,EAAE;;;;;;;;;;;;;GAqB1B,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,iBA4CrE;
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAwBhD,OAAO,OAAO,MAAM,SAAS,CAAC;AAM9B,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC,eAAO,MAAM,QAAQ,8DACuC,CAAC;AAC7D,eAAO,MAAM,UAAU,uHAC8F,CAAC;AACtH,eAAO,MAAM,OAAO,GAAa,OAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0ClC,MAAM,EAAE;;;;;;;;;;;;;GAqB1B,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,iBA4CrE;AAuJD,wBAAsB,wBAAwB,CAAC,EAC9C,SAAS,EACT,gBAAgB,GAChB,EAAE;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC3B,gCAmCA;AAED,wBAAgB,yBAAyB,CAAC,EACzC,SAAS,EACT,MAAM,GACN,EAAE;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CACb,MAAM,EACN;QACC,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,SAAS,CAAC;KACrB,CACD,CAAC;CACF,uBAkCA;AAED,KAAK,SAAS,GAAG,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAE7C,wBAAsB,iBAAiB,CACtC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EAAE;iBAUqB,MAAM;eAAa,SAAS;IAuBxE;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,SAAS,6EAW5D;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,0EAW3D"}
|
package/dist/commands/blocks.js
CHANGED
|
@@ -165,6 +165,9 @@ async function runCommand({ srcFolder, distFolder, tsConfigLocation, postcssConf
|
|
|
165
165
|
mode: isProduction ? "production" : "development",
|
|
166
166
|
node: { global: false },
|
|
167
167
|
});
|
|
168
|
+
if (!compiler) {
|
|
169
|
+
throw new Error("Failed to initialise compiler.");
|
|
170
|
+
}
|
|
168
171
|
if (isWatch) {
|
|
169
172
|
console.log("The blocks command is now deprecated. " + deprecated);
|
|
170
173
|
const watching = compiler.watch({
|
|
@@ -175,7 +178,7 @@ async function runCommand({ srcFolder, distFolder, tsConfigLocation, postcssConf
|
|
|
175
178
|
if (error) {
|
|
176
179
|
console.error(error.stack ?? error);
|
|
177
180
|
process.exitCode = 1;
|
|
178
|
-
watching
|
|
181
|
+
watching?.close((closeError) => {
|
|
179
182
|
console.error(closeError);
|
|
180
183
|
});
|
|
181
184
|
}
|
|
@@ -190,7 +193,7 @@ async function runCommand({ srcFolder, distFolder, tsConfigLocation, postcssConf
|
|
|
190
193
|
}
|
|
191
194
|
});
|
|
192
195
|
process.on("SIGINT", function () {
|
|
193
|
-
watching
|
|
196
|
+
watching?.close((closeError) => {
|
|
194
197
|
console.log("The blocks command is now deprecated. " + deprecated);
|
|
195
198
|
console.error(closeError);
|
|
196
199
|
});
|
|
@@ -198,8 +201,8 @@ async function runCommand({ srcFolder, distFolder, tsConfigLocation, postcssConf
|
|
|
198
201
|
}
|
|
199
202
|
else {
|
|
200
203
|
const stopRunningMessage = startRunningMessage("Building blocks");
|
|
201
|
-
compiler.run(
|
|
202
|
-
|
|
204
|
+
compiler.run((error, stats) => {
|
|
205
|
+
void stopRunningMessage();
|
|
203
206
|
if (error) {
|
|
204
207
|
console.error(error);
|
|
205
208
|
process.exitCode = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/cli",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.13",
|
|
4
4
|
"description": "A collection of CLI tools by Atomic Smash.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://www.atomicsmash.co.uk/",
|
|
@@ -42,44 +42,44 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atomicsmash/date-php": "^2.1.0",
|
|
44
44
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.17",
|
|
45
|
-
"@wordpress/babel-preset-default": "^8.
|
|
46
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^6.
|
|
47
|
-
"@wordpress/postcss-plugins-preset": "^5.
|
|
45
|
+
"@wordpress/babel-preset-default": "^8.32.0",
|
|
46
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.32.0",
|
|
47
|
+
"@wordpress/postcss-plugins-preset": "^5.32.0",
|
|
48
48
|
"autoprefixer": "^10.4.21",
|
|
49
49
|
"babel-loader": "^9.2.1",
|
|
50
|
-
"browserslist": "^4.
|
|
50
|
+
"browserslist": "^4.26.3",
|
|
51
51
|
"chalk": "^4.1.2",
|
|
52
52
|
"clean-webpack-plugin": "^4.0.0",
|
|
53
53
|
"copy-webpack-plugin": "^12.0.2",
|
|
54
54
|
"cosmiconfig": "^9.0.0",
|
|
55
55
|
"css-loader": "^7.1.2",
|
|
56
|
-
"cssnano": "^7.1.
|
|
56
|
+
"cssnano": "^7.1.1",
|
|
57
57
|
"fast-glob": "^3.3.3",
|
|
58
58
|
"glob-promise": "^6.0.7",
|
|
59
|
-
"mini-css-extract-plugin": "^2.9.
|
|
59
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
60
60
|
"path": "^0.12.7",
|
|
61
61
|
"postcss": "^8.5.6",
|
|
62
62
|
"postcss-load-config": "^6.0.1",
|
|
63
|
-
"postcss-loader": "^8.
|
|
63
|
+
"postcss-loader": "^8.2.0",
|
|
64
64
|
"react-refresh": "^0.14.2",
|
|
65
65
|
"read-pkg-up": "^7.0.1",
|
|
66
66
|
"rtlcss-webpack-plugin": "^4.0.7",
|
|
67
|
-
"sass": "^1.
|
|
67
|
+
"sass": "^1.93.2",
|
|
68
68
|
"sass-loader": "^16.0.5",
|
|
69
|
-
"schema-utils": "^4.3.
|
|
69
|
+
"schema-utils": "^4.3.3",
|
|
70
70
|
"source-map-loader": "^3.0.2",
|
|
71
71
|
"svg-sprite": "^2.0.4",
|
|
72
72
|
"terser-webpack-plugin": "^5.3.14",
|
|
73
73
|
"tsconfig-paths": "^4.2.0",
|
|
74
74
|
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
75
|
-
"tsx": "^4.20.
|
|
75
|
+
"tsx": "^4.20.6",
|
|
76
76
|
"vinyl": "^3.0.1",
|
|
77
|
-
"webpack": "^5.
|
|
77
|
+
"webpack": "^5.102.1",
|
|
78
78
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
79
79
|
"yargs": "^18.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@atomicsmash/blocks-helpers": "^7.1.0
|
|
82
|
+
"@atomicsmash/blocks-helpers": "^7.1.0",
|
|
83
83
|
"@types/glob": "^8.1.0",
|
|
84
84
|
"@types/svg-sprite": "^0.0.39",
|
|
85
85
|
"@types/vinyl": "^2.0.12",
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"dotenv": "^16.6.1",
|
|
91
|
-
"typescript": "
|
|
91
|
+
"typescript": "^5.8.3"
|
|
92
92
|
}
|
|
93
93
|
}
|