@atlaspack/cli 2.13.7-canary.9 → 2.13.7-dev.55

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 CHANGED
@@ -1,5 +1,85 @@
1
1
  # @atlaspack/cli
2
2
 
3
+ ## 2.13.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`1940859`](https://github.com/atlassian-labs/atlaspack/commit/194085942f0e86532e9d039fc3f8039badce4594), [`15b6155`](https://github.com/atlassian-labs/atlaspack/commit/15b61556e9114203ebbc9de94b864118ca764598), [`e4d966c`](https://github.com/atlassian-labs/atlaspack/commit/e4d966c3c9c4292c5013372ae65b10d19d4bacc6), [`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818), [`d04de26`](https://github.com/atlassian-labs/atlaspack/commit/d04de26af684d7abfba5091fbe3df16a12cd0ebc), [`f4da1e1`](https://github.com/atlassian-labs/atlaspack/commit/f4da1e120e73eeb5e8b8927f05e88f04d6148c7b)]:
8
+ - @atlaspack/core@2.17.4
9
+ - @atlaspack/fs@2.15.4
10
+ - @atlaspack/feature-flags@2.16.0
11
+ - @atlaspack/logger@2.14.9
12
+ - @atlaspack/utils@2.14.9
13
+ - @atlaspack/package-manager@2.14.9
14
+ - @atlaspack/reporter-cli@2.15.5
15
+ - @atlaspack/config-default@3.1.9
16
+ - @atlaspack/reporter-dev-server@2.14.9
17
+ - @atlaspack/reporter-tracer@2.14.9
18
+
19
+ ## 2.13.10
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b), [`3a3e8e7`](https://github.com/atlassian-labs/atlaspack/commit/3a3e8e7be9e2dffd7304436d792f0f595d59665a), [`1ab0a27`](https://github.com/atlassian-labs/atlaspack/commit/1ab0a275aeca40350415e2b03e7440d1dddc6228), [`b8a4ae8`](https://github.com/atlassian-labs/atlaspack/commit/b8a4ae8f83dc0a83d8b145c5f729936ce52080a3), [`15c1e3c`](https://github.com/atlassian-labs/atlaspack/commit/15c1e3c0628bae4c768d76cf3afc53d6d0d7ce7c)]:
24
+ - @atlaspack/core@2.17.3
25
+ - @atlaspack/feature-flags@2.15.1
26
+ - @atlaspack/fs@2.15.3
27
+ - @atlaspack/utils@2.14.8
28
+ - @atlaspack/reporter-cli@2.15.4
29
+ - @atlaspack/package-manager@2.14.8
30
+ - @atlaspack/logger@2.14.8
31
+ - @atlaspack/config-default@3.1.8
32
+ - @atlaspack/reporter-dev-server@2.14.8
33
+ - @atlaspack/reporter-tracer@2.14.8
34
+
35
+ ## 2.13.9
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [[`a1773d2`](https://github.com/atlassian-labs/atlaspack/commit/a1773d2a62d0ef7805ac7524621dcabcc1afe929), [`556d6ab`](https://github.com/atlassian-labs/atlaspack/commit/556d6ab8ede759fa7f37fcd3f4da336ef1c55e8f)]:
40
+ - @atlaspack/feature-flags@2.15.0
41
+ - @atlaspack/logger@2.14.7
42
+ - @atlaspack/core@2.17.2
43
+ - @atlaspack/fs@2.15.2
44
+ - @atlaspack/utils@2.14.7
45
+ - @atlaspack/reporter-cli@2.15.3
46
+ - @atlaspack/config-default@3.1.7
47
+ - @atlaspack/package-manager@2.14.7
48
+ - @atlaspack/reporter-dev-server@2.14.7
49
+ - @atlaspack/reporter-tracer@2.14.7
50
+
51
+ ## 2.13.8
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [[`e0f5337`](https://github.com/atlassian-labs/atlaspack/commit/e0f533757bd1019dbd108a04952c87da15286e09)]:
56
+ - @atlaspack/feature-flags@2.14.4
57
+ - @atlaspack/core@2.17.1
58
+ - @atlaspack/fs@2.15.1
59
+ - @atlaspack/utils@2.14.6
60
+ - @atlaspack/reporter-cli@2.15.2
61
+ - @atlaspack/logger@2.14.6
62
+ - @atlaspack/config-default@3.1.6
63
+ - @atlaspack/package-manager@2.14.6
64
+ - @atlaspack/reporter-dev-server@2.14.6
65
+ - @atlaspack/reporter-tracer@2.14.6
66
+
67
+ ## 2.13.7
68
+
69
+ ### Patch Changes
70
+
71
+ - 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)]:
72
+ - @atlaspack/core@2.17.0
73
+ - @atlaspack/feature-flags@2.14.3
74
+ - @atlaspack/fs@2.15.0
75
+ - @atlaspack/utils@2.14.5
76
+ - @atlaspack/reporter-cli@2.15.1
77
+ - @atlaspack/logger@2.14.5
78
+ - @atlaspack/config-default@3.1.5
79
+ - @atlaspack/package-manager@2.14.5
80
+ - @atlaspack/reporter-dev-server@2.14.5
81
+ - @atlaspack/reporter-tracer@2.14.5
82
+
3
83
  ## 2.13.6
4
84
 
5
85
  ### Patch Changes
package/lib/bin.js CHANGED
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
+ if (process.env.ATLASPACK_BUILD_ENV !== 'production' || process.env.ATLASPACK_SELF_BUILD) {
5
+ require('@atlaspack/babel-register');
6
+ }
4
7
  require('./cli');
@@ -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-canary.9+4c1714103",
3
+ "version": "2.13.7-dev.55+5a11f33c5",
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-canary.9+4c1714103",
28
- "@atlaspack/core": "2.16.2-canary.9+4c1714103",
29
- "@atlaspack/diagnostic": "2.14.1-canary.77+4c1714103",
30
- "@atlaspack/events": "2.14.1-canary.77+4c1714103",
31
- "@atlaspack/feature-flags": "2.14.1-canary.77+4c1714103",
32
- "@atlaspack/fs": "2.14.5-canary.9+4c1714103",
33
- "@atlaspack/logger": "2.14.5-canary.9+4c1714103",
34
- "@atlaspack/package-manager": "2.14.5-canary.9+4c1714103",
35
- "@atlaspack/reporter-cli": "2.15.1-canary.9+4c1714103",
36
- "@atlaspack/reporter-dev-server": "2.14.5-canary.9+4c1714103",
37
- "@atlaspack/reporter-tracer": "2.14.5-canary.9+4c1714103",
38
- "@atlaspack/utils": "2.14.5-canary.9+4c1714103",
27
+ "@atlaspack/config-default": "3.1.5-dev.55+5a11f33c5",
28
+ "@atlaspack/core": "2.16.2-dev.55+5a11f33c5",
29
+ "@atlaspack/diagnostic": "2.14.1-dev.123+5a11f33c5",
30
+ "@atlaspack/events": "2.14.1-dev.123+5a11f33c5",
31
+ "@atlaspack/feature-flags": "2.14.1-dev.123+5a11f33c5",
32
+ "@atlaspack/fs": "2.14.5-dev.55+5a11f33c5",
33
+ "@atlaspack/logger": "2.14.5-dev.55+5a11f33c5",
34
+ "@atlaspack/package-manager": "2.14.5-dev.55+5a11f33c5",
35
+ "@atlaspack/reporter-cli": "2.15.1-dev.55+5a11f33c5",
36
+ "@atlaspack/reporter-dev-server": "2.14.5-dev.55+5a11f33c5",
37
+ "@atlaspack/reporter-tracer": "2.14.5-dev.55+5a11f33c5",
38
+ "@atlaspack/utils": "2.14.5-dev.55+5a11f33c5",
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": "4c1714103dab2aa9039c488f381551d2b65d1d01"
48
+ "gitHead": "5a11f33c51ff74d1cf8d4b72cfa0fda833aa980a"
49
49
  }
@@ -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
  }