create-better-schemic 0.1.0-alpha.1 → 0.1.0-alpha.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/lib/index.js +1 -1
- package/package.json +6 -4
- package/src/index.ts +2 -2
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-schemic",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Scaffold a new Better-schemic project — package.json, tsconfig, a driver, and the database/ schema, in one command.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertio Solutions",
|
|
@@ -26,14 +26,16 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsup",
|
|
28
28
|
"prepack": "bun run build",
|
|
29
|
-
"typecheck": "
|
|
30
|
-
"lint": "biome check ."
|
|
29
|
+
"typecheck": "tsgo --noEmit",
|
|
30
|
+
"lint": "biome check .",
|
|
31
|
+
"typecheck:legacy": "tsc --noEmit"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@biomejs/biome": "^2.3.11",
|
|
34
35
|
"@clack/prompts": "^1.6.0",
|
|
35
36
|
"@types/bun": "latest",
|
|
36
37
|
"tsup": "^8",
|
|
37
|
-
"typescript": "^
|
|
38
|
+
"typescript": "^6.0.3",
|
|
39
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2"
|
|
38
40
|
}
|
|
39
41
|
}
|
package/src/index.ts
CHANGED
|
@@ -79,12 +79,12 @@ function detectPm(): Pm {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/** Abort cleanly on Ctrl-C / cancel from any prompt. */
|
|
82
|
-
function abortIfCancel<T>(value: T
|
|
82
|
+
function abortIfCancel<T>(value: T): Exclude<T, symbol> {
|
|
83
83
|
if (p.isCancel(value)) {
|
|
84
84
|
p.cancel("Cancelled.");
|
|
85
85
|
process.exit(1);
|
|
86
86
|
}
|
|
87
|
-
return value as T
|
|
87
|
+
return value as Exclude<T, symbol>;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// --- templates ---------------------------------------------------------------------------------
|