@wolfstar/create-http-framework 2.1.0 → 2.1.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.js +5 -5
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -92,9 +92,7 @@ async function fetchDependencyVersions(selections) {
|
|
|
92
92
|
case "tsc7":
|
|
93
93
|
names.add("tsc-watch");
|
|
94
94
|
break;
|
|
95
|
-
case "tsdown":
|
|
96
|
-
names.add("tsdown").add("typescript");
|
|
97
|
-
break;
|
|
95
|
+
case "tsdown": names.add("tsdown").add("typescript");
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
if (selections.linter === "eslint") {
|
|
@@ -251,7 +249,6 @@ function buildDevDependencies(ctx) {
|
|
|
251
249
|
case "tsdown":
|
|
252
250
|
dev["tsdown"] = caret(v["tsdown"]);
|
|
253
251
|
dev["typescript"] = caret(v["typescript"]);
|
|
254
|
-
break;
|
|
255
252
|
}
|
|
256
253
|
}
|
|
257
254
|
if (ctx.linter === "eslint") {
|
|
@@ -419,7 +416,10 @@ function processTemplate(outputDir, context) {
|
|
|
419
416
|
if (context.language === "ts" && relativePath.endsWith(".js.hbs")) continue;
|
|
420
417
|
const rawContent = readFileSync(absoluteSource, "utf-8");
|
|
421
418
|
const isHandlebars = relativePath.endsWith(".hbs");
|
|
422
|
-
|
|
419
|
+
const outputRelative = isHandlebars ? relativePath.slice(0, -4) : relativePath;
|
|
420
|
+
const outputPath = join(outputDir, outputRelative);
|
|
421
|
+
const content = isHandlebars ? Handlebars.compile(rawContent)(context) : rawContent;
|
|
422
|
+
writeFile(outputPath, content);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wolfstar/create-http-framework",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Create a new WolfStar HTTP Framework bot project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"type": "module",
|
|
32
32
|
"publishConfig": {
|
|
33
|
-
"access": "public"
|
|
33
|
+
"access": "public",
|
|
34
|
+
"provenance": true
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@clack/prompts": "^1.7.0",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"@types/handlebars": "^4.1.0",
|
|
46
47
|
"@types/mri": "^1.2.0",
|
|
47
48
|
"@types/node": "22.15.21",
|
|
48
|
-
"tsdown": "^0.22.
|
|
49
|
+
"tsdown": "^0.22.14",
|
|
49
50
|
"typescript": "~5.8.3"
|
|
50
51
|
},
|
|
51
52
|
"engines": {
|