create-mikstack 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
2
3
  import * as p from "@clack/prompts";
3
4
  import path from "node:path";
4
5
  import { parseArgs } from "node:util";
@@ -198,7 +199,7 @@ function scaffold(config) {
198
199
  if (fs.existsSync(target)) {
199
200
  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.`);
200
201
  }
201
- execSync(`${path.resolve(import.meta.dirname, "..", "node_modules", ".bin", "sv")} create ${target} --template minimal --types ts --add devtools-json --no-install`, { stdio: "pipe" });
202
+ execSync(`node ${createRequire(import.meta.url).resolve("sv/dist/bin.mjs")} create ${target} --template minimal --types ts --add devtools-json --no-install`, { stdio: "pipe" });
202
203
  const overlay = (dir) => {
203
204
  copyDir(dir, target);
204
205
  mergePartials(target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mikstack",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",