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.
- package/bin/index.js +5 -1
- 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
|
|
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
|
|