@cocojs/cli 0.1.0-beta.21 → 0.1.0-beta.22
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/index.js +2 -2
- package/dist/webpack-process/index.js +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var child_process = require('child_process');
|
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var process$1 = require('node:process');
|
|
6
6
|
var path$1 = require('node:path');
|
|
7
|
-
var
|
|
7
|
+
var bundleRollup = require('@cocojs/bundle-rollup');
|
|
8
8
|
var fs = require('node:fs');
|
|
9
9
|
|
|
10
10
|
function _arrayLikeToArray(r, a) {
|
|
@@ -526,7 +526,7 @@ var build = /*#__PURE__*/function () {
|
|
|
526
526
|
case 1:
|
|
527
527
|
config = _context.v;
|
|
528
528
|
_context.n = 2;
|
|
529
|
-
return
|
|
529
|
+
return bundleRollup.bundle({
|
|
530
530
|
input: path$1.join(process$1.cwd(), './src/index.ts'),
|
|
531
531
|
output: {
|
|
532
532
|
file: path$1.join(process$1.cwd(), './dist/index.esm.js'),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var process$1 = require('node:process');
|
|
4
|
-
var
|
|
4
|
+
var bundleWebpack = require('@cocojs/bundle-webpack');
|
|
5
5
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
6
6
|
var path = require('node:path');
|
|
7
7
|
var fs = require('node:fs');
|
|
@@ -312,7 +312,7 @@ var WebpackBuilder = /*#__PURE__*/function () {
|
|
|
312
312
|
case 1:
|
|
313
313
|
config = _context.v;
|
|
314
314
|
_context.n = 2;
|
|
315
|
-
return bundle
|
|
315
|
+
return bundleWebpack.bundle(config);
|
|
316
316
|
case 2:
|
|
317
317
|
return _context.a(2);
|
|
318
318
|
}
|
|
@@ -342,7 +342,7 @@ var WebpackBuilder = /*#__PURE__*/function () {
|
|
|
342
342
|
return getWebpackConfig('dev');
|
|
343
343
|
case 2:
|
|
344
344
|
config = _context2.v;
|
|
345
|
-
this.stopDev =
|
|
345
|
+
this.stopDev = bundleWebpack.startDev(config);
|
|
346
346
|
case 3:
|
|
347
347
|
return _context2.a(2);
|
|
348
348
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocojs/cli",
|
|
3
3
|
"description": "命令行工具,支持开发和构建功能",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.22",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"chokidar": "^4.0.3",
|
|
31
31
|
"fs-extra": "^11.2.0",
|
|
32
32
|
"html-webpack-plugin": "^5.6.3",
|
|
33
|
-
"@cocojs/bundle-rollup": "0.0.1-beta.
|
|
34
|
-
"@cocojs/bundle-webpack": "0.0.1-beta.
|
|
33
|
+
"@cocojs/bundle-rollup": "0.0.1-beta.9",
|
|
34
|
+
"@cocojs/bundle-webpack": "0.0.1-beta.9"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^22.15.18"
|