@valbuild/create 0.91.4 → 0.92.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/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2025 Fredrik Ekholdt and Blank AS
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -109,7 +109,7 @@ function processTemplateFiles(projectPath, projectName) {
|
|
|
109
109
|
content = content.replace(/\{\{PROJECT_NAME\}\}/g, projectName);
|
|
110
110
|
content = content.replace(/\{\{projectName\}\}/g, projectName);
|
|
111
111
|
fs.writeFileSync(filePath, content, "utf-8");
|
|
112
|
-
} catch
|
|
112
|
+
} catch {
|
|
113
113
|
// Silently continue if file can't be processed
|
|
114
114
|
console.log(chalk__default["default"].dim(`Note: Could not process ${filename}`));
|
|
115
115
|
}
|
|
@@ -223,6 +223,8 @@ async function main() {
|
|
|
223
223
|
|
|
224
224
|
// Show final success message
|
|
225
225
|
displaySuccessMessage(projectName);
|
|
226
|
+
process.stdout.write("\n");
|
|
227
|
+
process.exit(0);
|
|
226
228
|
} catch (error) {
|
|
227
229
|
renderTimeline(currentStep, currentStep);
|
|
228
230
|
console.error(chalk__default["default"].red('❌ Failed to install dependencies. You can try running "npm install" manually.'));
|
|
@@ -109,7 +109,7 @@ function processTemplateFiles(projectPath, projectName) {
|
|
|
109
109
|
content = content.replace(/\{\{PROJECT_NAME\}\}/g, projectName);
|
|
110
110
|
content = content.replace(/\{\{projectName\}\}/g, projectName);
|
|
111
111
|
fs.writeFileSync(filePath, content, "utf-8");
|
|
112
|
-
} catch
|
|
112
|
+
} catch {
|
|
113
113
|
// Silently continue if file can't be processed
|
|
114
114
|
console.log(chalk__default["default"].dim(`Note: Could not process ${filename}`));
|
|
115
115
|
}
|
|
@@ -223,6 +223,8 @@ async function main() {
|
|
|
223
223
|
|
|
224
224
|
// Show final success message
|
|
225
225
|
displaySuccessMessage(projectName);
|
|
226
|
+
process.stdout.write("\n");
|
|
227
|
+
process.exit(0);
|
|
226
228
|
} catch (error) {
|
|
227
229
|
renderTimeline(currentStep, currentStep);
|
|
228
230
|
console.error(chalk__default["default"].red('❌ Failed to install dependencies. You can try running "npm install" manually.'));
|
|
@@ -102,7 +102,7 @@ function processTemplateFiles(projectPath, projectName) {
|
|
|
102
102
|
content = content.replace(/\{\{PROJECT_NAME\}\}/g, projectName);
|
|
103
103
|
content = content.replace(/\{\{projectName\}\}/g, projectName);
|
|
104
104
|
writeFileSync(filePath, content, "utf-8");
|
|
105
|
-
} catch
|
|
105
|
+
} catch {
|
|
106
106
|
// Silently continue if file can't be processed
|
|
107
107
|
console.log(chalk.dim(`Note: Could not process ${filename}`));
|
|
108
108
|
}
|
|
@@ -216,6 +216,8 @@ async function main() {
|
|
|
216
216
|
|
|
217
217
|
// Show final success message
|
|
218
218
|
displaySuccessMessage(projectName);
|
|
219
|
+
process.stdout.write("\n");
|
|
220
|
+
process.exit(0);
|
|
219
221
|
} catch (error) {
|
|
220
222
|
renderTimeline(currentStep, currentStep);
|
|
221
223
|
console.error(chalk.red('❌ Failed to install dependencies. You can try running "npm install" manually.'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/create",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0",
|
|
4
4
|
"description": "Create a new Val project with Next.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "tsc",
|
|
23
|
-
"start": "tsx src/index.ts --",
|
|
24
|
-
"typecheck": "tsc --noEmit"
|
|
25
|
-
},
|
|
26
21
|
"dependencies": {
|
|
27
22
|
"degit": "^2.8.4",
|
|
28
23
|
"@inquirer/prompts": "^3.0.2",
|
|
@@ -49,5 +44,10 @@
|
|
|
49
44
|
},
|
|
50
45
|
"engines": {
|
|
51
46
|
"node": ">=18.17.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsc",
|
|
50
|
+
"start": "tsx src/index.ts --",
|
|
51
|
+
"typecheck": "tsc --noEmit"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -140,7 +140,7 @@ function processTemplateFiles(projectPath: string, projectName: string) {
|
|
|
140
140
|
content = content.replace(/\{\{PROJECT_NAME\}\}/g, projectName);
|
|
141
141
|
content = content.replace(/\{\{projectName\}\}/g, projectName);
|
|
142
142
|
writeFileSync(filePath, content, "utf-8");
|
|
143
|
-
} catch
|
|
143
|
+
} catch {
|
|
144
144
|
// Silently continue if file can't be processed
|
|
145
145
|
console.log(chalk.dim(`Note: Could not process ${filename}`));
|
|
146
146
|
}
|
|
@@ -292,6 +292,8 @@ async function main() {
|
|
|
292
292
|
|
|
293
293
|
// Show final success message
|
|
294
294
|
displaySuccessMessage(projectName);
|
|
295
|
+
process.stdout.write("\n");
|
|
296
|
+
process.exit(0);
|
|
295
297
|
} catch (error) {
|
|
296
298
|
renderTimeline(currentStep, currentStep);
|
|
297
299
|
console.error(
|