directus-template-cli 0.1.1 → 0.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/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.1 darwin-x64 node-v18.12.1
24
+ directus-template-cli/0.1.2 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.1/dist/commands/apply.ts)_
60
+ _See code: [dist/commands/apply.ts](https://github.com/bryantgillespie/directus-template-cli/blob/v0.1.2/dist/commands/apply.ts)_
61
61
 
62
62
  ## `directus-template-cli help [COMMANDS]`
63
63
 
@@ -6,11 +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 node_process_1 = require("node:process");
9
10
  const api_1 = require("../lib/api");
10
11
  const load_1 = tslib_1.__importDefault(require("../lib/load/"));
11
12
  const separator = '------------------';
12
13
  async function getTemplate() {
13
- const templates = await (0, read_templates_1.default)('../../templates/');
14
+ const rootDir = (0, node_process_1.cwd)() + '/templates';
15
+ const templates = await (0, read_templates_1.default)(rootDir);
14
16
  const templateChoices = templates.map((template) => {
15
17
  return { name: template.templateName, value: template };
16
18
  });
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.1",
2
+ "version": "0.1.2",
3
3
  "commands": {
4
4
  "apply": {
5
5
  "id": "apply",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-template-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI Utility for applying templates to a Directus instance.",
5
5
  "author": "bryantgillespie @bryantgillespie",
6
6
  "bin": {