@atlaspack/cli 2.13.7-dev.72 → 2.13.7-dev.93

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,51 @@
1
1
  # @atlaspack/cli
2
2
 
3
+ ## 2.13.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
8
+ - @atlaspack/feature-flags@2.18.2
9
+ - @atlaspack/core@2.18.5
10
+ - @atlaspack/fs@2.15.9
11
+ - @atlaspack/utils@2.15.2
12
+ - @atlaspack/reporter-cli@2.15.10
13
+ - @atlaspack/config-default@3.1.16
14
+ - @atlaspack/package-manager@2.14.14
15
+ - @atlaspack/reporter-dev-server@2.14.14
16
+ - @atlaspack/reporter-tracer@2.14.14
17
+
18
+ ## 2.13.17
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`ef3d622`](https://github.com/atlassian-labs/atlaspack/commit/ef3d6228f4e006702198a19c61e051d194d325cb), [`6b1f5ff`](https://github.com/atlassian-labs/atlaspack/commit/6b1f5fff68d7131fae075e14f4d2c02606dc6058), [`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`c8f7df4`](https://github.com/atlassian-labs/atlaspack/commit/c8f7df4eadfc4718040fceb065dae6e96a4051e7), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
23
+ - @atlaspack/logger@2.14.11
24
+ - @atlaspack/core@2.18.4
25
+ - @atlaspack/feature-flags@2.18.1
26
+ - @atlaspack/fs@2.15.8
27
+ - @atlaspack/package-manager@2.14.13
28
+ - @atlaspack/utils@2.15.1
29
+ - @atlaspack/config-default@3.1.15
30
+ - @atlaspack/reporter-cli@2.15.9
31
+ - @atlaspack/reporter-dev-server@2.14.13
32
+ - @atlaspack/reporter-tracer@2.14.13
33
+
34
+ ## 2.13.16
35
+
36
+ ### Patch Changes
37
+
38
+ - Updated dependencies [[`10fbcfb`](https://github.com/atlassian-labs/atlaspack/commit/10fbcfbfa49c7a83da5d7c40983e36e87f524a75), [`85c52d3`](https://github.com/atlassian-labs/atlaspack/commit/85c52d3f7717b3c84a118d18ab98cfbfd71dcbd2), [`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
39
+ - @atlaspack/feature-flags@2.18.0
40
+ - @atlaspack/utils@2.15.0
41
+ - @atlaspack/core@2.18.3
42
+ - @atlaspack/fs@2.15.7
43
+ - @atlaspack/reporter-cli@2.15.8
44
+ - @atlaspack/config-default@3.1.14
45
+ - @atlaspack/package-manager@2.14.12
46
+ - @atlaspack/reporter-dev-server@2.14.12
47
+ - @atlaspack/reporter-tracer@2.14.12
48
+
3
49
  ## 2.13.15
4
50
 
5
51
  ### 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');
package/lib/cli.js CHANGED
@@ -116,30 +116,14 @@ command) {
116
116
  entries = ['.'];
117
117
  }
118
118
  entries = entries.map(entry => _path().default.resolve(entry));
119
- let fs = new (_fs().NodeFS)();
120
119
  let Atlaspack = require('@atlaspack/core').default;
120
+ let fs = new (_fs().NodeFS)();
121
121
  let options = await (0, _normalizeOptions.normalizeOptions)(command, fs);
122
122
  let atlaspack = new Atlaspack({
123
123
  entries,
124
- defaultConfig: (() => {
125
- if ((0, _core().isSuperPackage)()) {
126
- // We're in the super package so resolve the inbuilt config
127
- let inbuiltDefaultConfig = _path().default.join( /*#__ATLASPACK_IGNORE__*/__dirname, '../../configs/default/index.json.js');
128
- if (!fs.existsSync(inbuiltDefaultConfig)) {
129
- throw new Error(`Missing inbuilt default config. Expected '${inbuiltDefaultConfig}' to exist`);
130
- }
131
- return inbuiltDefaultConfig;
132
- }
133
- for (let path of [fs.cwd(), __dirname]) {
134
- let customRequire = require('module').createRequire(path);
135
- try {
136
- return customRequire.resolve('@atlaspack/config-default');
137
- } catch (e) {
138
- // Ignore error
139
- }
140
- }
141
- throw new Error(`Can't resolve default config`);
142
- })(),
124
+ defaultConfig: require.resolve('@atlaspack/config-default', {
125
+ paths: [fs.cwd(), __dirname]
126
+ }),
143
127
  shouldPatchConsole: false,
144
128
  ...options
145
129
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/cli",
3
- "version": "2.13.7-dev.72+9840480de",
3
+ "version": "2.13.7-dev.93+207d003c0",
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-dev.72+9840480de",
28
- "@atlaspack/core": "2.16.2-dev.72+9840480de",
29
- "@atlaspack/diagnostic": "2.14.1-dev.140+9840480de",
30
- "@atlaspack/events": "2.14.1-dev.140+9840480de",
31
- "@atlaspack/feature-flags": "2.14.1-dev.140+9840480de",
32
- "@atlaspack/fs": "2.14.5-dev.72+9840480de",
33
- "@atlaspack/logger": "2.14.5-dev.72+9840480de",
34
- "@atlaspack/package-manager": "2.14.5-dev.72+9840480de",
35
- "@atlaspack/reporter-cli": "2.15.1-dev.72+9840480de",
36
- "@atlaspack/reporter-dev-server": "2.14.5-dev.72+9840480de",
37
- "@atlaspack/reporter-tracer": "2.14.5-dev.72+9840480de",
38
- "@atlaspack/utils": "2.14.5-dev.72+9840480de",
27
+ "@atlaspack/config-default": "3.1.5-dev.93+207d003c0",
28
+ "@atlaspack/core": "2.16.2-dev.93+207d003c0",
29
+ "@atlaspack/diagnostic": "2.14.1-dev.161+207d003c0",
30
+ "@atlaspack/events": "2.14.1-dev.161+207d003c0",
31
+ "@atlaspack/feature-flags": "2.14.1-dev.161+207d003c0",
32
+ "@atlaspack/fs": "2.14.5-dev.93+207d003c0",
33
+ "@atlaspack/logger": "2.14.5-dev.93+207d003c0",
34
+ "@atlaspack/package-manager": "2.14.5-dev.93+207d003c0",
35
+ "@atlaspack/reporter-cli": "2.15.1-dev.93+207d003c0",
36
+ "@atlaspack/reporter-dev-server": "2.14.5-dev.93+207d003c0",
37
+ "@atlaspack/reporter-tracer": "2.14.5-dev.93+207d003c0",
38
+ "@atlaspack/utils": "2.14.5-dev.93+207d003c0",
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": "9840480de27511f558d8f5b8cf82220de977b4fb"
48
+ "gitHead": "207d003c0f1d4ffa6a1c52d2f8841d998616c523"
49
49
  }
package/src/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @flow
2
2
 
3
- import {BuildError, isSuperPackage} from '@atlaspack/core';
3
+ import {BuildError} from '@atlaspack/core';
4
4
  import {NodeFS} from '@atlaspack/fs';
5
5
  import {openInBrowser} from '@atlaspack/utils';
6
6
  import {Disposable} from '@atlaspack/events';
@@ -132,39 +132,14 @@ async function run(
132
132
 
133
133
  entries = entries.map((entry) => path.resolve(entry));
134
134
 
135
- let fs = new NodeFS();
136
-
137
- const resolveDefaultConfig = () => {
138
- if (isSuperPackage()) {
139
- // We're in the super package so resolve the inbuilt config
140
- let inbuiltDefaultConfig = path.join(
141
- /*#__ATLASPACK_IGNORE__*/ __dirname,
142
- '../../configs/default/index.json.js',
143
- );
144
- if (!fs.existsSync(inbuiltDefaultConfig)) {
145
- throw new Error(
146
- `Missing inbuilt default config. Expected '${inbuiltDefaultConfig}' to exist`,
147
- );
148
- }
149
- return inbuiltDefaultConfig;
150
- }
151
-
152
- for (let path of [fs.cwd(), __dirname]) {
153
- let customRequire = require('module').createRequire(path);
154
- try {
155
- return customRequire.resolve('@atlaspack/config-default');
156
- } catch (e) {
157
- // Ignore error
158
- }
159
- }
160
- throw new Error(`Can't resolve default config`);
161
- };
162
-
163
135
  let Atlaspack = require('@atlaspack/core').default;
136
+ let fs = new NodeFS();
164
137
  let options = await normalizeOptions(command, fs);
165
138
  let atlaspack = new Atlaspack({
166
139
  entries,
167
- defaultConfig: resolveDefaultConfig(),
140
+ defaultConfig: require.resolve('@atlaspack/config-default', {
141
+ paths: [fs.cwd(), __dirname],
142
+ }),
168
143
  shouldPatchConsole: false,
169
144
  ...options,
170
145
  });