directus-template-cli 0.1.2 → 0.1.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/README.md +2 -2
- package/dist/commands/apply.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ npm install -g directus-template-cli
|
|
|
21
21
|
$ directus-template-cli COMMAND
|
|
22
22
|
running command...
|
|
23
23
|
$ directus-template-cli (--version)
|
|
24
|
-
directus-template-cli/0.1.
|
|
24
|
+
directus-template-cli/0.1.3 darwin-x64 node-v18.12.1
|
|
25
25
|
$ directus-template-cli --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ directus-template-cli COMMAND
|
|
@@ -57,7 +57,7 @@ EXAMPLES
|
|
|
57
57
|
$ directus-template-cli apply
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
_See code: [dist/commands/apply.ts](https://github.com/bryantgillespie/directus-template-cli/blob/v0.1.
|
|
60
|
+
_See code: [dist/commands/apply.ts](https://github.com/bryantgillespie/directus-template-cli/blob/v0.1.3/dist/commands/apply.ts)_
|
|
61
61
|
|
|
62
62
|
## `directus-template-cli help [COMMANDS]`
|
|
63
63
|
|
package/dist/commands/apply.js
CHANGED
|
@@ -6,13 +6,13 @@ const core_2 = require("@oclif/core");
|
|
|
6
6
|
const inquirer = tslib_1.__importStar(require("inquirer"));
|
|
7
7
|
const read_templates_1 = tslib_1.__importDefault(require("../lib/utils/read-templates"));
|
|
8
8
|
const validate_url_1 = tslib_1.__importDefault(require("../lib/utils/validate-url"));
|
|
9
|
-
const
|
|
9
|
+
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
10
10
|
const api_1 = require("../lib/api");
|
|
11
11
|
const load_1 = tslib_1.__importDefault(require("../lib/load/"));
|
|
12
12
|
const separator = '------------------';
|
|
13
13
|
async function getTemplate() {
|
|
14
|
-
const
|
|
15
|
-
const templates = await (0, read_templates_1.default)(
|
|
14
|
+
const TEMPLATE_DIR = node_path_1.default.join(__dirname, '..', '..', 'templates');
|
|
15
|
+
const templates = await (0, read_templates_1.default)(TEMPLATE_DIR);
|
|
16
16
|
const templateChoices = templates.map((template) => {
|
|
17
17
|
return { name: template.templateName, value: template };
|
|
18
18
|
});
|
package/oclif.manifest.json
CHANGED