@gasket/preset-api 7.5.6 → 7.6.0
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/cjs/create.cjs +2 -3
- package/cjs/index.cjs +2 -3
- package/lib/create.js +2 -3
- package/lib/index.js +2 -3
- package/package.json +16 -16
package/cjs/create.cjs
CHANGED
|
@@ -8,15 +8,14 @@ Object.defineProperty(exports, /** @type {import('@gasket/core').HookHandler<'cr
|
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
10
|
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
11
|
-
const _module = require("module");
|
|
12
11
|
const _url = require("url");
|
|
12
|
+
const _packagejson = /*#__PURE__*/ _interop_require_default(require("../package.json"));
|
|
13
13
|
function _interop_require_default(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : {
|
|
15
15
|
default: obj
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
const { devDependencies } = require1('../package.json');
|
|
18
|
+
const { devDependencies } = _packagejson.default;
|
|
20
19
|
function create(gasket, context) {
|
|
21
20
|
const { pkg, files, packageManager } = context;
|
|
22
21
|
let runCmd;
|
package/cjs/index.cjs
CHANGED
|
@@ -7,17 +7,16 @@ Object.defineProperty(exports, /** @type {import('@gasket/core').Preset} */ "def
|
|
|
7
7
|
return _default;
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
-
const _module = require("module");
|
|
11
10
|
const _presetprompt = /*#__PURE__*/ _interop_require_default(require("./preset-prompt.cjs"));
|
|
12
11
|
const _presetconfig = /*#__PURE__*/ _interop_require_default(require("./preset-config.cjs"));
|
|
13
12
|
const _create = /*#__PURE__*/ _interop_require_default(require("./create.cjs"));
|
|
13
|
+
const _packagejson = /*#__PURE__*/ _interop_require_default(require("../package.json"));
|
|
14
14
|
function _interop_require_default(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : {
|
|
16
16
|
default: obj
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
const { name, version, description } = require1('../package.json');
|
|
19
|
+
const { name, version, description } = _packagejson.default;
|
|
21
20
|
const _default = {
|
|
22
21
|
name,
|
|
23
22
|
version,
|
package/lib/create.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import { createRequire } from 'module';
|
|
3
2
|
import { fileURLToPath } from 'url';
|
|
4
|
-
|
|
5
|
-
const { devDependencies } =
|
|
3
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
4
|
+
const { devDependencies } = packageJson;
|
|
6
5
|
|
|
7
6
|
/** @type {import('@gasket/core').HookHandler<'create'>} */
|
|
8
7
|
export default function create(gasket, context) {
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { createRequire } from 'module';
|
|
2
1
|
import presetPrompt from './preset-prompt.js';
|
|
3
2
|
import presetConfig from './preset-config.js';
|
|
4
3
|
import create from './create.js';
|
|
5
|
-
|
|
6
|
-
const { name, version, description } =
|
|
4
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
5
|
+
const { name, version, description } = packageJson;
|
|
7
6
|
|
|
8
7
|
/** @type {import('@gasket/core').Preset} */
|
|
9
8
|
export default {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gasket/preset-api",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Create Express-based API with Gasket",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -28,31 +28,31 @@
|
|
|
28
28
|
"bugs": "https://github.com/godaddy/gasket/issues",
|
|
29
29
|
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-preset-api",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@gasket/plugin-command": "^7.
|
|
31
|
+
"@gasket/plugin-command": "^7.6.0",
|
|
32
32
|
"@gasket/plugin-cypress": "^7.5.3",
|
|
33
|
-
"@gasket/plugin-docs": "^7.
|
|
34
|
-
"@gasket/plugin-docusaurus": "^7.
|
|
35
|
-
"@gasket/plugin-dynamic-plugins": "^7.
|
|
36
|
-
"@gasket/plugin-express": "^7.
|
|
37
|
-
"@gasket/plugin-fastify": "^7.
|
|
33
|
+
"@gasket/plugin-docs": "^7.5.0",
|
|
34
|
+
"@gasket/plugin-docusaurus": "^7.5.0",
|
|
35
|
+
"@gasket/plugin-dynamic-plugins": "^7.5.0",
|
|
36
|
+
"@gasket/plugin-express": "^7.5.0",
|
|
37
|
+
"@gasket/plugin-fastify": "^7.5.0",
|
|
38
38
|
"@gasket/plugin-git": "^7.4.7",
|
|
39
|
-
"@gasket/plugin-https": "^7.
|
|
40
|
-
"@gasket/plugin-lint": "^7.4.4",
|
|
41
|
-
"@gasket/plugin-logger": "^7.3.8",
|
|
39
|
+
"@gasket/plugin-https": "^7.4.0",
|
|
42
40
|
"@gasket/plugin-jest": "^7.5.5",
|
|
41
|
+
"@gasket/plugin-lint": "^7.4.4",
|
|
42
|
+
"@gasket/plugin-logger": "^7.4.0",
|
|
43
43
|
"@gasket/plugin-mocha": "^7.5.4",
|
|
44
|
-
"@gasket/plugin-swagger": "^7.
|
|
44
|
+
"@gasket/plugin-swagger": "^7.4.0",
|
|
45
45
|
"@gasket/plugin-typescript": "^7.4.6",
|
|
46
|
-
"@gasket/plugin-vitest": "^7.
|
|
47
|
-
"@gasket/plugin-winston": "^7.
|
|
46
|
+
"@gasket/plugin-vitest": "^7.2.0",
|
|
47
|
+
"@gasket/plugin-winston": "^7.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@vitest/coverage-v8": "^3.2.0",
|
|
51
51
|
"nodemon": "^3.1.9",
|
|
52
52
|
"vitest": "^3.2.0",
|
|
53
|
-
"@gasket/cjs": "^7.0
|
|
54
|
-
"
|
|
55
|
-
"
|
|
53
|
+
"@gasket/cjs": "^7.1.0",
|
|
54
|
+
"@gasket/plugin-metadata": "^7.5.5",
|
|
55
|
+
"create-gasket-app": "^7.4.15"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "gasket-cjs ./lib",
|