create-directus-docker 1.2.2 → 1.2.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/package.json +1 -1
  2. package/src/cli.js +9 -9
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-directus-docker",
3
3
  "description": "An installer for Dockerized Directus + MySQL + Adminer + GraphiQL with a helper Node app",
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Dave Kobrenski",
package/src/cli.js CHANGED
@@ -7,22 +7,22 @@ import {fileURLToPath} from 'url';
7
7
  import { create } from 'create-create-app';
8
8
 
9
9
  const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = path.dirname(__filename);
10
+ const __dirname = path.dirname(__filename);)
11
11
 
12
- const caveat = `
13
- ${chalk.yellow("Directus with MySQL, Adminer, and GraphiQL:")}
12
+ create('create-directus-docker', {
13
+ templateRoot: upath.resolve(__dirname, '../templates'),
14
+ caveat: ({ answers }) => {
15
+ return `
16
+ {chalk.yellow("Directus with MySQL, Adminer, and GraphiQL:")}
14
17
 
15
18
  To configure and run your Directus services, run:
16
19
 
17
- cd ${chalk.bold.green(options.name)} && npm start
20
+ cd ${chalk.bold.green(answers.name)} && npm start
18
21
 
19
22
  For more information, see:
20
23
  https://github.com/davekobrenski/create-directus-docker
21
24
 
22
25
  Enjoy!
23
- `;
24
-
25
- create('create-directus-docker', {
26
- templateRoot: upath.resolve(__dirname, '../templates'),
27
- caveat
26
+ `
27
+ }
28
28
  });