@atlaspack/create-react-app 2.14.2-unified-e330ff3d9.0 → 2.14.2-unified-f92fba5b6.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 +3 -0
- package/lib/cli.js +3 -2
- package/package.json +3 -3
- package/src/bin.js +4 -1
package/lib/bin.js
CHANGED
package/lib/cli.js
CHANGED
|
@@ -120,13 +120,14 @@ 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
|
-
|
|
123
|
+
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
|
-
}
|
|
129
|
+
}
|
|
130
|
+
await Promise.all([writePackageJson(), ncp(_path().default.join(TEMPLATES_DIR, 'default'), tempPath)]);
|
|
130
131
|
log(emoji.progress, 'Installing packages...');
|
|
131
132
|
await installPackages(['@atlaspack/cli@canary', 'postcss', '@babel/core'], {
|
|
132
133
|
cwd: tempPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/create-react-app",
|
|
3
|
-
"version": "2.14.2-unified-
|
|
3
|
+
"version": "2.14.2-unified-f92fba5b6.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-unified-
|
|
39
|
+
"@atlaspack/babel-register": "2.14.2-unified-f92fba5b6.0",
|
|
40
40
|
"@babel/core": "^7.22.11",
|
|
41
41
|
"rimraf": "^5.0.5"
|
|
42
42
|
},
|
|
43
43
|
"type": "commonjs",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "f92fba5b6216e1d94cbd23f3a5d61f7188d49199"
|
|
45
45
|
}
|