@directus/extensions-sdk 9.14.0 → 9.14.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/create.ts"],"names":[],"mappings":"AAkBA,aAAK,aAAa,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CA4EtG"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/create.ts"],"names":[],"mappings":"AAkBA,aAAK,aAAa,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFtG"}
@@ -55,6 +55,7 @@ async function create(type, name, options) {
55
55
  },
56
56
  scripts: {
57
57
  build: 'directus-extension build',
58
+ dev: 'directus-extension build -w --no-minify',
58
59
  },
59
60
  devDependencies: await getPackageDeps(type, options.language),
60
61
  };
@@ -64,8 +65,11 @@ async function create(type, name, options) {
64
65
  (0, logger_1.default)(`
65
66
  Your ${type} extension has been created at ${chalk_1.default.green(targetPath)}
66
67
 
67
- Build your extension by running:
68
- ${chalk_1.default.blue('cd')} ${name}
68
+ To start developing, run:
69
+ ${chalk_1.default.blue('cd')} c
70
+ ${chalk_1.default.blue('npm run')} dev
71
+
72
+ and then to build for production, run:
69
73
  ${chalk_1.default.blue('npm run')} build
70
74
  `);
71
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/create.ts"],"names":[],"mappings":"AAkBA,aAAK,aAAa,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CA4EtG"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/create.ts"],"names":[],"mappings":"AAkBA,aAAK,aAAa,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFtG"}
@@ -50,6 +50,7 @@ export default async function create(type, name, options) {
50
50
  },
51
51
  scripts: {
52
52
  build: 'directus-extension build',
53
+ dev: 'directus-extension build -w --no-minify',
53
54
  },
54
55
  devDependencies: await getPackageDeps(type, options.language),
55
56
  };
@@ -59,8 +60,11 @@ export default async function create(type, name, options) {
59
60
  log(`
60
61
  Your ${type} extension has been created at ${chalk.green(targetPath)}
61
62
 
62
- Build your extension by running:
63
- ${chalk.blue('cd')} ${name}
63
+ To start developing, run:
64
+ ${chalk.blue('cd')} c
65
+ ${chalk.blue('npm run')} dev
66
+
67
+ and then to build for production, run:
64
68
  ${chalk.blue('npm run')} build
65
69
  `);
66
70
  }
package/package.json CHANGED
@@ -1,56 +1,58 @@
1
1
  {
2
- "name": "@directus/extensions-sdk",
3
- "version": "9.14.0",
4
- "description": "A toolkit to develop extensions to extend Directus.",
5
- "main": "dist/cjs/index.js",
6
- "exports": {
7
- ".": {
8
- "import": "./dist/esm/index.js",
9
- "require": "./dist/cjs/index.js"
10
- },
11
- "./cli": {
12
- "import": "./dist/esm/cli/index.js",
13
- "require": "./dist/cjs/cli/index.js"
14
- },
15
- "./package.json": "./package.json"
16
- },
17
- "types": "dist/esm/index.d.ts",
18
- "bin": {
19
- "directus-extension": "cli.js"
20
- },
21
- "scripts": {
22
- "build": "run-p \"build:* -- {@}\" --",
23
- "build:esm": "tsc --project ./tsconfig.json --module ES2015 --outDir ./dist/esm",
24
- "build:cjs": "tsc --project ./tsconfig.json --module CommonJS --outDir ./dist/cjs",
25
- "cleanup": "rimraf ./dist",
26
- "dev": "npm run build -- -w --preserveWatchOutput --incremental"
27
- },
28
- "engines": {
29
- "node": ">=12.20.0"
30
- },
31
- "author": "Nicola Krumschmidt",
32
- "gitHead": "d952222058dca96cf823b3e91dc146266ff89bd0",
33
- "dependencies": {
34
- "@directus/shared": "9.14.0",
35
- "@rollup/plugin-commonjs": "^21.0.1",
36
- "@rollup/plugin-json": "^4.1.0",
37
- "@rollup/plugin-node-resolve": "^13.1.3",
38
- "@rollup/plugin-replace": "^3.1.0",
39
- "@vue/compiler-sfc": "^3.1.1",
40
- "chalk": "^4.1.1",
41
- "commander": "^8.0.0",
42
- "execa": "^5.1.1",
43
- "fs-extra": "^10.0.0",
44
- "ora": "^5.4.0",
45
- "rollup": "^2.67.3",
46
- "rollup-plugin-styles": "^4.0.0",
47
- "rollup-plugin-terser": "^7.0.2",
48
- "rollup-plugin-typescript2": "^0.31.2",
49
- "rollup-plugin-vue": "^6.0.0"
50
- },
51
- "devDependencies": {
52
- "npm-run-all": "4.1.5",
53
- "rimraf": "3.0.2",
54
- "typescript": "4.5.2"
55
- }
56
- }
2
+ "name": "@directus/extensions-sdk",
3
+ "version": "9.14.4",
4
+ "description": "A toolkit to develop extensions to extend Directus.",
5
+ "main": "dist/cjs/index.js",
6
+ "repository": "directus/directus",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/esm/index.js",
10
+ "require": "./dist/cjs/index.js"
11
+ },
12
+ "./cli": {
13
+ "import": "./dist/esm/cli/index.js",
14
+ "require": "./dist/cjs/cli/index.js"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "types": "dist/esm/index.d.ts",
19
+ "bin": {
20
+ "directus-extension": "cli.js"
21
+ },
22
+ "engines": {
23
+ "node": ">=12.20.0"
24
+ },
25
+ "author": "Nicola Krumschmidt",
26
+ "gitHead": "24621f3934dc77eb23441331040ed13c676ceffd",
27
+ "dependencies": {
28
+ "@directus/shared": "9.14.5",
29
+ "@rollup/plugin-commonjs": "^21.0.1",
30
+ "@rollup/plugin-json": "^4.1.0",
31
+ "@rollup/plugin-node-resolve": "^13.1.3",
32
+ "@rollup/plugin-replace": "^3.1.0",
33
+ "@vue/compiler-sfc": "^3.1.1",
34
+ "chalk": "^4.1.1",
35
+ "commander": "^8.0.0",
36
+ "execa": "^5.1.1",
37
+ "fs-extra": "^10.0.0",
38
+ "ora": "^5.4.0",
39
+ "rollup": "^2.67.3",
40
+ "rollup-plugin-styles": "^4.0.0",
41
+ "rollup-plugin-terser": "^7.0.2",
42
+ "rollup-plugin-typescript2": "^0.31.2",
43
+ "rollup-plugin-vue": "^6.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "@types/fs-extra": "9.0.13",
47
+ "npm-run-all": "4.1.5",
48
+ "rimraf": "3.0.2",
49
+ "typescript": "4.5.2"
50
+ },
51
+ "scripts": {
52
+ "build": "run-p \"build:* {@}\"",
53
+ "build:esm": "tsc --project ./tsconfig.json --module ES2015 --outDir ./dist/esm",
54
+ "build:cjs": "tsc --project ./tsconfig.json --module CommonJS --outDir ./dist/cjs",
55
+ "cleanup": "rimraf ./dist",
56
+ "dev": "npm run build -w --preserveWatchOutput --incremental"
57
+ }
58
+ }
@@ -77,6 +77,7 @@ export default async function create(type: string, name: string, options: Create
77
77
  },
78
78
  scripts: {
79
79
  build: 'directus-extension build',
80
+ dev: 'directus-extension build -w --no-minify',
80
81
  },
81
82
  devDependencies: await getPackageDeps(type, options.language),
82
83
  };
@@ -90,8 +91,11 @@ export default async function create(type: string, name: string, options: Create
90
91
  log(`
91
92
  Your ${type} extension has been created at ${chalk.green(targetPath)}
92
93
 
93
- Build your extension by running:
94
- ${chalk.blue('cd')} ${name}
94
+ To start developing, run:
95
+ ${chalk.blue('cd')} c
96
+ ${chalk.blue('npm run')} dev
97
+
98
+ and then to build for production, run:
95
99
  ${chalk.blue('npm run')} build
96
100
  `);
97
101
  }