@atlaspack/create-react-app 2.14.2-typescript-8a6ec6c8b.0 → 2.14.2-unified-e330ff3d9.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 +0 -3
- package/lib/cli.js +2 -3
- package/package.json +3 -3
- package/src/bin.js +1 -4
package/lib/bin.js
CHANGED
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-
|
|
3
|
+
"version": "2.14.2-unified-e330ff3d9.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-
|
|
39
|
+
"@atlaspack/babel-register": "2.14.2-unified-e330ff3d9.0",
|
|
40
40
|
"@babel/core": "^7.22.11",
|
|
41
41
|
"rimraf": "^5.0.5"
|
|
42
42
|
},
|
|
43
43
|
"type": "commonjs",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e330ff3d90fbf336f87439a65e312d698433990b"
|
|
45
45
|
}
|