create-mikstack 0.1.1 → 0.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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
2
|
import * as p from "@clack/prompts";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import { parseArgs } from "node:util";
|
|
@@ -199,7 +198,8 @@ function scaffold(config) {
|
|
|
199
198
|
if (fs.existsSync(target)) {
|
|
200
199
|
if (fs.readdirSync(target).length > 0) throw new Error(`Target directory "${config.targetDir}" is not empty. Please choose a different name or remove the directory.`);
|
|
201
200
|
}
|
|
202
|
-
|
|
201
|
+
const svBin = new URL("../bin.mjs", import.meta.resolve("sv")).pathname;
|
|
202
|
+
execSync(`node ${svBin} create ${target} --template minimal --types ts --add devtools-json --no-install`, { stdio: "pipe" });
|
|
203
203
|
const overlay = (dir) => {
|
|
204
204
|
copyDir(dir, target);
|
|
205
205
|
mergePartials(target);
|