@atlaspack/cli 2.13.3-dev.144 → 2.13.3-dev.146

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,163 @@
1
1
  # @atlaspack/cli
2
2
 
3
+ ## 2.13.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/config-default@3.1.12
9
+
10
+ ## 2.13.13
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies []:
15
+ - @atlaspack/config-default@3.1.11
16
+ - @atlaspack/core@2.18.1
17
+
18
+ ## 2.13.12
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`0999fb7`](https://github.com/atlassian-labs/atlaspack/commit/0999fb78da519a6c7582d212883e515fcf6c1252), [`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196), [`0b2f6f5`](https://github.com/atlassian-labs/atlaspack/commit/0b2f6f55794d3ff6e2f5a41f963e7e5dd8ad9f8d), [`6dd4ccb`](https://github.com/atlassian-labs/atlaspack/commit/6dd4ccb753541de32322d881f973d571dd57e4ca)]:
23
+ - @atlaspack/fs@2.15.5
24
+ - @atlaspack/core@2.18.0
25
+ - @atlaspack/package-manager@2.14.10
26
+ - @atlaspack/reporter-cli@2.15.6
27
+ - @atlaspack/reporter-dev-server@2.14.10
28
+ - @atlaspack/config-default@3.1.10
29
+ - @atlaspack/logger@2.14.10
30
+ - @atlaspack/utils@2.14.10
31
+ - @atlaspack/reporter-tracer@2.14.10
32
+
33
+ ## 2.13.11
34
+
35
+ ### Patch Changes
36
+
37
+ - 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)]:
38
+ - @atlaspack/core@2.17.4
39
+ - @atlaspack/fs@2.15.4
40
+ - @atlaspack/feature-flags@2.16.0
41
+ - @atlaspack/logger@2.14.9
42
+ - @atlaspack/utils@2.14.9
43
+ - @atlaspack/package-manager@2.14.9
44
+ - @atlaspack/reporter-cli@2.15.5
45
+ - @atlaspack/config-default@3.1.9
46
+ - @atlaspack/reporter-dev-server@2.14.9
47
+ - @atlaspack/reporter-tracer@2.14.9
48
+
49
+ ## 2.13.10
50
+
51
+ ### Patch Changes
52
+
53
+ - 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)]:
54
+ - @atlaspack/core@2.17.3
55
+ - @atlaspack/feature-flags@2.15.1
56
+ - @atlaspack/fs@2.15.3
57
+ - @atlaspack/utils@2.14.8
58
+ - @atlaspack/reporter-cli@2.15.4
59
+ - @atlaspack/package-manager@2.14.8
60
+ - @atlaspack/logger@2.14.8
61
+ - @atlaspack/config-default@3.1.8
62
+ - @atlaspack/reporter-dev-server@2.14.8
63
+ - @atlaspack/reporter-tracer@2.14.8
64
+
65
+ ## 2.13.9
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [[`a1773d2`](https://github.com/atlassian-labs/atlaspack/commit/a1773d2a62d0ef7805ac7524621dcabcc1afe929), [`556d6ab`](https://github.com/atlassian-labs/atlaspack/commit/556d6ab8ede759fa7f37fcd3f4da336ef1c55e8f)]:
70
+ - @atlaspack/feature-flags@2.15.0
71
+ - @atlaspack/logger@2.14.7
72
+ - @atlaspack/core@2.17.2
73
+ - @atlaspack/fs@2.15.2
74
+ - @atlaspack/utils@2.14.7
75
+ - @atlaspack/reporter-cli@2.15.3
76
+ - @atlaspack/config-default@3.1.7
77
+ - @atlaspack/package-manager@2.14.7
78
+ - @atlaspack/reporter-dev-server@2.14.7
79
+ - @atlaspack/reporter-tracer@2.14.7
80
+
81
+ ## 2.13.8
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [[`e0f5337`](https://github.com/atlassian-labs/atlaspack/commit/e0f533757bd1019dbd108a04952c87da15286e09)]:
86
+ - @atlaspack/feature-flags@2.14.4
87
+ - @atlaspack/core@2.17.1
88
+ - @atlaspack/fs@2.15.1
89
+ - @atlaspack/utils@2.14.6
90
+ - @atlaspack/reporter-cli@2.15.2
91
+ - @atlaspack/logger@2.14.6
92
+ - @atlaspack/config-default@3.1.6
93
+ - @atlaspack/package-manager@2.14.6
94
+ - @atlaspack/reporter-dev-server@2.14.6
95
+ - @atlaspack/reporter-tracer@2.14.6
96
+
97
+ ## 2.13.7
98
+
99
+ ### Patch Changes
100
+
101
+ - 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)]:
102
+ - @atlaspack/core@2.17.0
103
+ - @atlaspack/feature-flags@2.14.3
104
+ - @atlaspack/fs@2.15.0
105
+ - @atlaspack/utils@2.14.5
106
+ - @atlaspack/reporter-cli@2.15.1
107
+ - @atlaspack/logger@2.14.5
108
+ - @atlaspack/config-default@3.1.5
109
+ - @atlaspack/package-manager@2.14.5
110
+ - @atlaspack/reporter-dev-server@2.14.5
111
+ - @atlaspack/reporter-tracer@2.14.5
112
+
113
+ ## 2.13.6
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [[`41f62c4`](https://github.com/atlassian-labs/atlaspack/commit/41f62c4479595808d8426c1e674d69fbe1bf0d5e), [`cb9da16`](https://github.com/atlassian-labs/atlaspack/commit/cb9da16fb2648e7f53c64df0313f60d5fb8970cc)]:
118
+ - @atlaspack/reporter-cli@2.15.0
119
+ - @atlaspack/core@2.16.1
120
+ - @atlaspack/fs@2.14.4
121
+ - @atlaspack/logger@2.14.4
122
+ - @atlaspack/utils@2.14.4
123
+ - @atlaspack/config-default@3.1.4
124
+ - @atlaspack/package-manager@2.14.4
125
+ - @atlaspack/reporter-dev-server@2.14.4
126
+ - @atlaspack/reporter-tracer@2.14.4
127
+
128
+ ## 2.13.5
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [[`90150df`](https://github.com/atlassian-labs/atlaspack/commit/90150dfb68236e1d1c11813108ecabd92cff9366)]:
133
+ - @atlaspack/core@2.16.0
134
+ - @atlaspack/fs@2.14.3
135
+ - @atlaspack/logger@2.14.3
136
+ - @atlaspack/utils@2.14.3
137
+ - @atlaspack/config-default@3.1.3
138
+ - @atlaspack/package-manager@2.14.3
139
+ - @atlaspack/reporter-cli@2.14.3
140
+ - @atlaspack/reporter-dev-server@2.14.3
141
+ - @atlaspack/reporter-tracer@2.14.3
142
+
143
+ ## 2.13.4
144
+
145
+ ### Patch Changes
146
+
147
+ - [#516](https://github.com/atlassian-labs/atlaspack/pull/516) [`e1c9f47`](https://github.com/atlassian-labs/atlaspack/commit/e1c9f47f884a86d51eb3edff4135707c60f3f3fb) Thanks [@yamadapc](https://github.com/yamadapc)! - Make sure atlaspack debug build-asset-graph stores a no-lazy cache
148
+
149
+ - Updated dependencies [[`9b85d3e`](https://github.com/atlassian-labs/atlaspack/commit/9b85d3e645b10bd027eed2304afc970a5ba40062), [`17b9579`](https://github.com/atlassian-labs/atlaspack/commit/17b9579484eced0ed8f23e2aba6d23b3c7238c39), [`8f4e6c1`](https://github.com/atlassian-labs/atlaspack/commit/8f4e6c1b0e7c1fd48624afda48c1dcc599f1460f)]:
150
+ - @atlaspack/feature-flags@2.14.2
151
+ - @atlaspack/core@2.15.1
152
+ - @atlaspack/fs@2.14.2
153
+ - @atlaspack/utils@2.14.2
154
+ - @atlaspack/reporter-cli@2.14.2
155
+ - @atlaspack/config-default@3.1.2
156
+ - @atlaspack/logger@2.14.2
157
+ - @atlaspack/package-manager@2.14.2
158
+ - @atlaspack/reporter-dev-server@2.14.2
159
+ - @atlaspack/reporter-tracer@2.14.2
160
+
3
161
  ## 2.13.3
4
162
 
5
163
  ### Patch Changes
@@ -55,8 +55,8 @@ function makeDebugCommand() {
55
55
  paths: [fs.cwd(), __dirname]
56
56
  }),
57
57
  shouldPatchConsole: false,
58
+ shouldBuildLazily: false,
58
59
  ...options,
59
- shouldBuildLazily: true,
60
60
  watchBackend: 'watchman'
61
61
  });
62
62
  _logger().default.info({
@@ -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.3-dev.144+ea7d58b70",
3
+ "version": "2.13.3-dev.146+33cba81e9",
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.1-dev.144+ea7d58b70",
28
- "@atlaspack/core": "2.14.1-dev.144+ea7d58b70",
29
- "@atlaspack/diagnostic": "2.14.1-dev.144+ea7d58b70",
30
- "@atlaspack/events": "2.14.1-dev.144+ea7d58b70",
31
- "@atlaspack/feature-flags": "2.14.1-dev.144+ea7d58b70",
32
- "@atlaspack/fs": "2.14.1-dev.144+ea7d58b70",
33
- "@atlaspack/logger": "2.14.1-dev.144+ea7d58b70",
34
- "@atlaspack/package-manager": "2.14.1-dev.144+ea7d58b70",
35
- "@atlaspack/reporter-cli": "2.14.1-dev.144+ea7d58b70",
36
- "@atlaspack/reporter-dev-server": "2.14.1-dev.144+ea7d58b70",
37
- "@atlaspack/reporter-tracer": "2.14.1-dev.144+ea7d58b70",
38
- "@atlaspack/utils": "2.14.1-dev.144+ea7d58b70",
27
+ "@atlaspack/config-default": "3.1.1-dev.146+33cba81e9",
28
+ "@atlaspack/core": "2.14.1-dev.146+33cba81e9",
29
+ "@atlaspack/diagnostic": "2.14.1-dev.146+33cba81e9",
30
+ "@atlaspack/events": "2.14.1-dev.146+33cba81e9",
31
+ "@atlaspack/feature-flags": "2.14.1-dev.146+33cba81e9",
32
+ "@atlaspack/fs": "2.14.1-dev.146+33cba81e9",
33
+ "@atlaspack/logger": "2.14.1-dev.146+33cba81e9",
34
+ "@atlaspack/package-manager": "2.14.1-dev.146+33cba81e9",
35
+ "@atlaspack/reporter-cli": "2.14.1-dev.146+33cba81e9",
36
+ "@atlaspack/reporter-dev-server": "2.14.1-dev.146+33cba81e9",
37
+ "@atlaspack/reporter-tracer": "2.14.1-dev.146+33cba81e9",
38
+ "@atlaspack/utils": "2.14.1-dev.146+33cba81e9",
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": "ea7d58b70fbe4bbc6324d4053ac673ea307b7bf6"
48
+ "gitHead": "33cba81e98b6eb098014f5a19d7932821b95f075"
49
49
  }
@@ -34,8 +34,8 @@ export function makeDebugCommand(): commander$Command {
34
34
  paths: [fs.cwd(), __dirname],
35
35
  }),
36
36
  shouldPatchConsole: false,
37
+ shouldBuildLazily: false,
37
38
  ...options,
38
- shouldBuildLazily: true,
39
39
  watchBackend: 'watchman',
40
40
  });
41
41
  logger.info({
@@ -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
  }