@atlaspack/cli 2.13.7-canary.8 → 2.13.7-dev.14
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/CHANGELOG.md +16 -0
- package/lib/makeDebugCommand.js +14 -0
- package/package.json +14 -14
- package/src/makeDebugCommand.js +18 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaspack/cli
|
|
2
2
|
|
|
3
|
+
## 2.13.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2e90c9b`](https://github.com/atlassian-labs/atlaspack/commit/2e90c9bd07d7eb52645f9d84ccbb7f82685cbc8c), [`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7), [`e2ba0f6`](https://github.com/atlassian-labs/atlaspack/commit/e2ba0f69702656f3d1ce95ab1454e35062b13b39), [`4c17141`](https://github.com/atlassian-labs/atlaspack/commit/4c1714103dab2aa9039c488f381551d2b65d1d01)]:
|
|
8
|
+
- @atlaspack/core@2.17.0
|
|
9
|
+
- @atlaspack/feature-flags@2.14.3
|
|
10
|
+
- @atlaspack/fs@2.15.0
|
|
11
|
+
- @atlaspack/utils@2.14.5
|
|
12
|
+
- @atlaspack/reporter-cli@2.15.1
|
|
13
|
+
- @atlaspack/logger@2.14.5
|
|
14
|
+
- @atlaspack/config-default@3.1.5
|
|
15
|
+
- @atlaspack/package-manager@2.14.5
|
|
16
|
+
- @atlaspack/reporter-dev-server@2.14.5
|
|
17
|
+
- @atlaspack/reporter-tracer@2.14.5
|
|
18
|
+
|
|
3
19
|
## 2.13.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/lib/makeDebugCommand.js
CHANGED
|
@@ -92,5 +92,19 @@ function makeDebugCommand() {
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
(0, _applyOptions.applyOptions)(buildAssetGraph, _options.commonOptions);
|
|
95
|
+
const compactCache = debug.command('compact-cache [input...]').description('Compact the cache').action(async (args, opts, command) => {
|
|
96
|
+
const atlaspack = await getInstance(args, opts, command);
|
|
97
|
+
try {
|
|
98
|
+
await atlaspack.unstable_compactCache();
|
|
99
|
+
_logger().default.info({
|
|
100
|
+
message: 'Done compacting cache',
|
|
101
|
+
origin: '@atlaspack/cli'
|
|
102
|
+
});
|
|
103
|
+
process.exit(0);
|
|
104
|
+
} catch (err) {
|
|
105
|
+
(0, _handleUncaughtException.handleUncaughtException)(err);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
(0, _applyOptions.applyOptions)(compactCache, _options.commonOptions);
|
|
95
109
|
return debug;
|
|
96
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/cli",
|
|
3
|
-
"version": "2.13.7-
|
|
3
|
+
"version": "2.13.7-dev.14+8c369e38c",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"node": ">= 16.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaspack/config-default": "3.1.5-
|
|
28
|
-
"@atlaspack/core": "2.16.2-
|
|
29
|
-
"@atlaspack/diagnostic": "2.14.1-
|
|
30
|
-
"@atlaspack/events": "2.14.1-
|
|
31
|
-
"@atlaspack/feature-flags": "2.14.1-
|
|
32
|
-
"@atlaspack/fs": "2.14.5-
|
|
33
|
-
"@atlaspack/logger": "2.14.5-
|
|
34
|
-
"@atlaspack/package-manager": "2.14.5-
|
|
35
|
-
"@atlaspack/reporter-cli": "2.15.1-
|
|
36
|
-
"@atlaspack/reporter-dev-server": "2.14.5-
|
|
37
|
-
"@atlaspack/reporter-tracer": "2.14.5-
|
|
38
|
-
"@atlaspack/utils": "2.14.5-
|
|
27
|
+
"@atlaspack/config-default": "3.1.5-dev.14+8c369e38c",
|
|
28
|
+
"@atlaspack/core": "2.16.2-dev.14+8c369e38c",
|
|
29
|
+
"@atlaspack/diagnostic": "2.14.1-dev.82+8c369e38c",
|
|
30
|
+
"@atlaspack/events": "2.14.1-dev.82+8c369e38c",
|
|
31
|
+
"@atlaspack/feature-flags": "2.14.1-dev.82+8c369e38c",
|
|
32
|
+
"@atlaspack/fs": "2.14.5-dev.14+8c369e38c",
|
|
33
|
+
"@atlaspack/logger": "2.14.5-dev.14+8c369e38c",
|
|
34
|
+
"@atlaspack/package-manager": "2.14.5-dev.14+8c369e38c",
|
|
35
|
+
"@atlaspack/reporter-cli": "2.15.1-dev.14+8c369e38c",
|
|
36
|
+
"@atlaspack/reporter-dev-server": "2.14.5-dev.14+8c369e38c",
|
|
37
|
+
"@atlaspack/reporter-tracer": "2.14.5-dev.14+8c369e38c",
|
|
38
|
+
"@atlaspack/utils": "2.14.5-dev.14+8c369e38c",
|
|
39
39
|
"chalk": "^4.1.0",
|
|
40
40
|
"commander": "^7.0.0",
|
|
41
41
|
"get-port": "^4.2.0"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@babel/core": "^7.22.11",
|
|
46
46
|
"rimraf": "^5.0.5"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "8c369e38ccd428409811114aebd6044c27f90705"
|
|
49
49
|
}
|
package/src/makeDebugCommand.js
CHANGED
|
@@ -83,5 +83,23 @@ export function makeDebugCommand(): commander$Command {
|
|
|
83
83
|
});
|
|
84
84
|
applyOptions(buildAssetGraph, commonOptions);
|
|
85
85
|
|
|
86
|
+
const compactCache = debug
|
|
87
|
+
.command('compact-cache [input...]')
|
|
88
|
+
.description('Compact the cache')
|
|
89
|
+
.action(async (args: string[], opts: Options, command: CommandExt) => {
|
|
90
|
+
const atlaspack = await getInstance(args, opts, command);
|
|
91
|
+
try {
|
|
92
|
+
await atlaspack.unstable_compactCache();
|
|
93
|
+
logger.info({
|
|
94
|
+
message: 'Done compacting cache',
|
|
95
|
+
origin: '@atlaspack/cli',
|
|
96
|
+
});
|
|
97
|
+
process.exit(0);
|
|
98
|
+
} catch (err) {
|
|
99
|
+
handleUncaughtException(err);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
applyOptions(compactCache, commonOptions);
|
|
103
|
+
|
|
86
104
|
return debug;
|
|
87
105
|
}
|