create-directus-docker 1.1.0 → 1.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/package.json +1 -1
- package/src/cli.js +4 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import chalk from 'chalk';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import {fileURLToPath} from 'url';
|
|
4
6
|
import { resolve } from 'path';
|
|
5
7
|
import { create } from 'create-create-app';
|
|
6
8
|
// const { resolve } = require('path');
|
|
7
9
|
//const { create } = require('create-create-app');
|
|
8
10
|
|
|
11
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = path.dirname(__filename);
|
|
9
13
|
const templateRoot = resolve(__dirname, '..', 'templates');
|
|
10
14
|
|
|
11
15
|
const caveat = () => {
|
|
@@ -14,7 +18,6 @@ ${chalk.yellow("Directus with MySQL, Adminer, and GraphiQL:")}
|
|
|
14
18
|
|
|
15
19
|
Installed successfully.
|
|
16
20
|
|
|
17
|
-
${process.argv}
|
|
18
21
|
`
|
|
19
22
|
}
|
|
20
23
|
|