@atlaspack/create-react-app 2.14.2-typescript-8a6ec6c8b.0 → 2.14.2-unified-308e6415c.0

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/lib/bin.js CHANGED
@@ -1,8 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- if (process.env.ATLASPACK_SOURCES === 'true' || process.env.ATLASPACK_BUILD_ENV === 'test') {
5
- require('@atlaspack/babel-register');
6
- }
7
4
  require('v8-compile-cache');
8
5
  require('./cli');
package/lib/cli.js CHANGED
@@ -120,14 +120,13 @@ async function createApp(packageName, tempPath) {
120
120
  log(emoji.progress, 'Initializing git repository...');
121
121
  await git.init();
122
122
  log(emoji.progress, 'Adding templates...');
123
- async function writePackageJson() {
123
+ await Promise.all([async function writePackageJson() {
124
124
  const packageJson = JSON.parse(await _fs().default.promises.readFile(_path().default.join(TEMPLATES_DIR, 'package.json'), 'utf8'));
125
125
  await _fs().default.promises.writeFile(_path().default.join(tempPath, 'package.json'), JSON.stringify({
126
126
  name: packageName,
127
127
  ...packageJson
128
128
  }, null, 2));
129
- }
130
- await Promise.all([writePackageJson(), ncp(_path().default.join(TEMPLATES_DIR, 'default'), tempPath)]);
129
+ }(), ncp(_path().default.join(TEMPLATES_DIR, 'default'), tempPath)]);
131
130
  log(emoji.progress, 'Installing packages...');
132
131
  await installPackages(['@atlaspack/cli@canary', 'postcss', '@babel/core'], {
133
132
  cwd: tempPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/create-react-app",
3
- "version": "2.14.2-typescript-8a6ec6c8b.0",
3
+ "version": "2.14.2-unified-308e6415c.0",
4
4
  "bin": {
5
5
  "atlaspack-create-react-app": "lib/bin.js"
6
6
  },
@@ -36,10 +36,10 @@
36
36
  "v8-compile-cache": "^2.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@atlaspack/babel-register": "2.14.2-typescript-8a6ec6c8b.0",
39
+ "@atlaspack/babel-register": "2.14.2-unified-308e6415c.0",
40
40
  "@babel/core": "^7.22.11",
41
41
  "rimraf": "^5.0.5"
42
42
  },
43
43
  "type": "commonjs",
44
- "gitHead": "8a6ec6c8bed0bbf5461f5b0f899577a576906051"
44
+ "gitHead": "308e6415c9da9c8d08944fe7dabb27dc47de1cc4"
45
45
  }
package/src/bin.js CHANGED
@@ -2,10 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- if (
6
- process.env.ATLASPACK_SOURCES === 'true' ||
7
- process.env.ATLASPACK_BUILD_ENV === 'test'
8
- ) {
5
+ if (process.env.ATLASPACK_BUILD_ENV !== 'production') {
9
6
  require('@atlaspack/babel-register');
10
7
  }
11
8