create-renoun 2.0.1 → 2.0.2
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/dist/index.mjs +8 -0
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -244,6 +244,14 @@ const downloadFile = async (url, filePath)=>{
|
|
|
244
244
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
|
|
245
245
|
// Remove "@examples/" prefix from package name
|
|
246
246
|
packageJson.name = packageJson.name.replace('@examples/', '');
|
|
247
|
+
const cliPath = '../../packages/renoun/dist/cli/index.js';
|
|
248
|
+
if (packageJson.scripts) {
|
|
249
|
+
for (const [scriptName, scriptValue] of Object.entries(packageJson.scripts)){
|
|
250
|
+
if (typeof scriptValue === 'string') {
|
|
251
|
+
packageJson.scripts[scriptName] = scriptValue.replaceAll(cliPath, 'renoun');
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
247
255
|
// Replace "workspace:*" and "catalog:" with the latest versions of the package
|
|
248
256
|
for (const [packageName, version] of Object.entries(packageJson.dependencies)){
|
|
249
257
|
if (version === 'catalog:' || version === 'workspace:*') {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-renoun",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "souporserious",
|
|
7
7
|
"email": "support@souporserious.com"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/souporserious/renoun",
|
|
12
|
+
"url": "git+https://github.com/souporserious/renoun.git",
|
|
13
13
|
"directory": "packages/create-renoun"
|
|
14
14
|
},
|
|
15
15
|
"bugs": "https://github.com/souporserious/renoun/issues",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
],
|
|
20
20
|
"bin": "./dist/index.mjs",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bunchee": "
|
|
22
|
+
"bunchee": "6.6.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@antfu/install-pkg": "
|
|
26
|
-
"@clack/prompts": "
|
|
27
|
-
"picocolors": "
|
|
28
|
-
"terminal-link": "
|
|
25
|
+
"@antfu/install-pkg": "1.1.0",
|
|
26
|
+
"@clack/prompts": "0.11.0",
|
|
27
|
+
"picocolors": "1.1.1",
|
|
28
|
+
"terminal-link": "5.0.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "bunchee",
|