create-backurus-app 1.0.1 → 1.0.3

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/bin/index.js +5 -1
  2. package/package.json +2 -2
package/bin/index.js CHANGED
@@ -1,12 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import fs from "fs-extra"
4
+ import { fileURLToPath } from "url"
4
5
  import path from "path"
5
6
  import inquirer from "inquirer"
6
7
  import chalk from "chalk"
7
8
  import { execSync } from "child_process"
8
9
 
9
- const templateDir = new URL("../template", import.meta.url).pathname
10
+ const __filename = fileURLToPath(import.meta.url)
11
+ const __dirname = path.dirname(__filename)
12
+
13
+ const templateDir = path.join(__dirname, "../template")
10
14
 
11
15
  async function run() {
12
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-backurus-app",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "bin": {
5
5
  "create-backurus-app": "./bin/index.js"
6
6
  },
@@ -10,4 +10,4 @@
10
10
  "fs-extra": "^11.2.0",
11
11
  "inquirer": "^9.2.0"
12
12
  }
13
- }
13
+ }