@atlaspack/cli 2.13.3-dev.142 → 2.13.3-dev.145

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,117 @@
1
1
  # @atlaspack/cli
2
2
 
3
+ ## 2.13.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 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)]:
8
+ - @atlaspack/core@2.17.3
9
+ - @atlaspack/feature-flags@2.15.1
10
+ - @atlaspack/fs@2.15.3
11
+ - @atlaspack/utils@2.14.8
12
+ - @atlaspack/reporter-cli@2.15.4
13
+ - @atlaspack/package-manager@2.14.8
14
+ - @atlaspack/logger@2.14.8
15
+ - @atlaspack/config-default@3.1.8
16
+ - @atlaspack/reporter-dev-server@2.14.8
17
+ - @atlaspack/reporter-tracer@2.14.8
18
+
19
+ ## 2.13.9
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`a1773d2`](https://github.com/atlassian-labs/atlaspack/commit/a1773d2a62d0ef7805ac7524621dcabcc1afe929), [`556d6ab`](https://github.com/atlassian-labs/atlaspack/commit/556d6ab8ede759fa7f37fcd3f4da336ef1c55e8f)]:
24
+ - @atlaspack/feature-flags@2.15.0
25
+ - @atlaspack/logger@2.14.7
26
+ - @atlaspack/core@2.17.2
27
+ - @atlaspack/fs@2.15.2
28
+ - @atlaspack/utils@2.14.7
29
+ - @atlaspack/reporter-cli@2.15.3
30
+ - @atlaspack/config-default@3.1.7
31
+ - @atlaspack/package-manager@2.14.7
32
+ - @atlaspack/reporter-dev-server@2.14.7
33
+ - @atlaspack/reporter-tracer@2.14.7
34
+
35
+ ## 2.13.8
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [[`e0f5337`](https://github.com/atlassian-labs/atlaspack/commit/e0f533757bd1019dbd108a04952c87da15286e09)]:
40
+ - @atlaspack/feature-flags@2.14.4
41
+ - @atlaspack/core@2.17.1
42
+ - @atlaspack/fs@2.15.1
43
+ - @atlaspack/utils@2.14.6
44
+ - @atlaspack/reporter-cli@2.15.2
45
+ - @atlaspack/logger@2.14.6
46
+ - @atlaspack/config-default@3.1.6
47
+ - @atlaspack/package-manager@2.14.6
48
+ - @atlaspack/reporter-dev-server@2.14.6
49
+ - @atlaspack/reporter-tracer@2.14.6
50
+
51
+ ## 2.13.7
52
+
53
+ ### Patch Changes
54
+
55
+ - 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)]:
56
+ - @atlaspack/core@2.17.0
57
+ - @atlaspack/feature-flags@2.14.3
58
+ - @atlaspack/fs@2.15.0
59
+ - @atlaspack/utils@2.14.5
60
+ - @atlaspack/reporter-cli@2.15.1
61
+ - @atlaspack/logger@2.14.5
62
+ - @atlaspack/config-default@3.1.5
63
+ - @atlaspack/package-manager@2.14.5
64
+ - @atlaspack/reporter-dev-server@2.14.5
65
+ - @atlaspack/reporter-tracer@2.14.5
66
+
67
+ ## 2.13.6
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [[`41f62c4`](https://github.com/atlassian-labs/atlaspack/commit/41f62c4479595808d8426c1e674d69fbe1bf0d5e), [`cb9da16`](https://github.com/atlassian-labs/atlaspack/commit/cb9da16fb2648e7f53c64df0313f60d5fb8970cc)]:
72
+ - @atlaspack/reporter-cli@2.15.0
73
+ - @atlaspack/core@2.16.1
74
+ - @atlaspack/fs@2.14.4
75
+ - @atlaspack/logger@2.14.4
76
+ - @atlaspack/utils@2.14.4
77
+ - @atlaspack/config-default@3.1.4
78
+ - @atlaspack/package-manager@2.14.4
79
+ - @atlaspack/reporter-dev-server@2.14.4
80
+ - @atlaspack/reporter-tracer@2.14.4
81
+
82
+ ## 2.13.5
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [[`90150df`](https://github.com/atlassian-labs/atlaspack/commit/90150dfb68236e1d1c11813108ecabd92cff9366)]:
87
+ - @atlaspack/core@2.16.0
88
+ - @atlaspack/fs@2.14.3
89
+ - @atlaspack/logger@2.14.3
90
+ - @atlaspack/utils@2.14.3
91
+ - @atlaspack/config-default@3.1.3
92
+ - @atlaspack/package-manager@2.14.3
93
+ - @atlaspack/reporter-cli@2.14.3
94
+ - @atlaspack/reporter-dev-server@2.14.3
95
+ - @atlaspack/reporter-tracer@2.14.3
96
+
97
+ ## 2.13.4
98
+
99
+ ### Patch Changes
100
+
101
+ - [#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
102
+
103
+ - 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)]:
104
+ - @atlaspack/feature-flags@2.14.2
105
+ - @atlaspack/core@2.15.1
106
+ - @atlaspack/fs@2.14.2
107
+ - @atlaspack/utils@2.14.2
108
+ - @atlaspack/reporter-cli@2.14.2
109
+ - @atlaspack/config-default@3.1.2
110
+ - @atlaspack/logger@2.14.2
111
+ - @atlaspack/package-manager@2.14.2
112
+ - @atlaspack/reporter-dev-server@2.14.2
113
+ - @atlaspack/reporter-tracer@2.14.2
114
+
3
115
  ## 2.13.3
4
116
 
5
117
  ### 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.142+529a21a40",
3
+ "version": "2.13.3-dev.145+fa4d24840",
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.142+529a21a40",
28
- "@atlaspack/core": "2.14.1-dev.142+529a21a40",
29
- "@atlaspack/diagnostic": "2.14.1-dev.142+529a21a40",
30
- "@atlaspack/events": "2.14.1-dev.142+529a21a40",
31
- "@atlaspack/feature-flags": "2.14.1-dev.142+529a21a40",
32
- "@atlaspack/fs": "2.14.1-dev.142+529a21a40",
33
- "@atlaspack/logger": "2.14.1-dev.142+529a21a40",
34
- "@atlaspack/package-manager": "2.14.1-dev.142+529a21a40",
35
- "@atlaspack/reporter-cli": "2.14.1-dev.142+529a21a40",
36
- "@atlaspack/reporter-dev-server": "2.14.1-dev.142+529a21a40",
37
- "@atlaspack/reporter-tracer": "2.14.1-dev.142+529a21a40",
38
- "@atlaspack/utils": "2.14.1-dev.142+529a21a40",
27
+ "@atlaspack/config-default": "3.1.1-dev.145+fa4d24840",
28
+ "@atlaspack/core": "2.14.1-dev.145+fa4d24840",
29
+ "@atlaspack/diagnostic": "2.14.1-dev.145+fa4d24840",
30
+ "@atlaspack/events": "2.14.1-dev.145+fa4d24840",
31
+ "@atlaspack/feature-flags": "2.14.1-dev.145+fa4d24840",
32
+ "@atlaspack/fs": "2.14.1-dev.145+fa4d24840",
33
+ "@atlaspack/logger": "2.14.1-dev.145+fa4d24840",
34
+ "@atlaspack/package-manager": "2.14.1-dev.145+fa4d24840",
35
+ "@atlaspack/reporter-cli": "2.14.1-dev.145+fa4d24840",
36
+ "@atlaspack/reporter-dev-server": "2.14.1-dev.145+fa4d24840",
37
+ "@atlaspack/reporter-tracer": "2.14.1-dev.145+fa4d24840",
38
+ "@atlaspack/utils": "2.14.1-dev.145+fa4d24840",
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": "529a21a40d655a8a92dbc8a4a91e0992d0e9e60e"
48
+ "gitHead": "fa4d24840815e7048a21d74caf01e2df633fabe3"
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
  }