@gasket/preset-nextjs 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/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 require1 = (0, _module.createRequire)(require("url").pathToFileURL(__filename).toString());
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,
@@ -13,7 +13,7 @@ Object.defineProperty(exports, /**
13
13
  return presetPrompt;
14
14
  }
15
15
  });
16
- const _prompts = /*#__PURE__*/ _interop_require_default(require("@gasket/plugin-nextjs/prompts"));
16
+ const _prompts = require("@gasket/plugin-nextjs/prompts");
17
17
  const _prompts1 = /*#__PURE__*/ _interop_require_default(require("@gasket/plugin-typescript/prompts"));
18
18
  function _interop_require_default(obj) {
19
19
  return obj && obj.__esModule ? obj : {
@@ -22,7 +22,7 @@ function _interop_require_default(obj) {
22
22
  }
23
23
  async function presetPrompt(gasket, context, { prompt }) {
24
24
  await _prompts1.default.promptTypescript(context, prompt);
25
- await _prompts.default.promptNextServerType(context, prompt);
26
- await _prompts.default.promptNextDevProxy(context, prompt);
25
+ await (0, _prompts.promptNextServerType)(context, prompt);
26
+ await (0, _prompts.promptNextDevProxy)(context, prompt);
27
27
  return context;
28
28
  }
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
- const require = createRequire(import.meta.url);
6
- const { name, version, description } = require('../package.json');
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 {
@@ -1,4 +1,7 @@
1
- import nextJsPrompts from '@gasket/plugin-nextjs/prompts';
1
+ import {
2
+ promptNextServerType,
3
+ promptNextDevProxy
4
+ } from '@gasket/plugin-nextjs/prompts';
2
5
  import typescriptPrompts from '@gasket/plugin-typescript/prompts';
3
6
 
4
7
  /**
@@ -10,8 +13,8 @@ import typescriptPrompts from '@gasket/plugin-typescript/prompts';
10
13
  */
11
14
  export default async function presetPrompt(gasket, context, { prompt }) {
12
15
  await typescriptPrompts.promptTypescript(context, prompt);
13
- await nextJsPrompts.promptNextServerType(context, prompt);
14
- await nextJsPrompts.promptNextDevProxy(context, prompt);
16
+ await promptNextServerType(context, prompt);
17
+ await promptNextDevProxy(context, prompt);
15
18
 
16
19
  return context;
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/preset-nextjs",
3
- "version": "7.5.6",
3
+ "version": "7.6.0",
4
4
  "description": "Basic NextJS Framework",
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-nextjs",
30
30
  "dependencies": {
31
- "@gasket/plugin-command": "^7.5.3",
31
+ "@gasket/plugin-command": "^7.6.0",
32
32
  "@gasket/plugin-cypress": "^7.5.3",
33
- "@gasket/plugin-docs": "^7.4.8",
34
- "@gasket/plugin-docusaurus": "^7.4.6",
35
- "@gasket/plugin-dynamic-plugins": "^7.4.2",
33
+ "@gasket/plugin-docs": "^7.5.0",
34
+ "@gasket/plugin-docusaurus": "^7.5.0",
35
+ "@gasket/plugin-dynamic-plugins": "^7.5.0",
36
36
  "@gasket/plugin-git": "^7.4.7",
37
- "@gasket/plugin-express": "^7.4.4",
38
- "@gasket/plugin-https": "^7.3.12",
39
- "@gasket/plugin-https-proxy": "^7.4.2",
40
- "@gasket/plugin-intl": "^7.5.10",
37
+ "@gasket/plugin-express": "^7.5.0",
38
+ "@gasket/plugin-https": "^7.4.0",
39
+ "@gasket/plugin-https-proxy": "^7.5.0",
40
+ "@gasket/plugin-intl": "^7.6.0",
41
41
  "@gasket/plugin-jest": "^7.5.5",
42
42
  "@gasket/plugin-lint": "^7.4.4",
43
- "@gasket/plugin-logger": "^7.3.8",
43
+ "@gasket/plugin-logger": "^7.4.0",
44
44
  "@gasket/plugin-mocha": "^7.5.4",
45
- "@gasket/plugin-nextjs": "^7.6.4",
46
- "@gasket/plugin-vitest": "^7.1.2",
45
+ "@gasket/plugin-nextjs": "^7.7.0",
46
+ "@gasket/plugin-vitest": "^7.2.0",
47
47
  "@gasket/plugin-typescript": "^7.4.6",
48
- "@gasket/plugin-webpack": "^7.3.9",
49
- "@gasket/utils": "^7.6.3",
50
- "@gasket/plugin-winston": "^7.3.8"
48
+ "@gasket/plugin-webpack": "^7.4.0",
49
+ "@gasket/plugin-winston": "^7.4.0",
50
+ "@gasket/utils": "^7.6.3"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@vitest/coverage-v8": "^3.2.0",
54
54
  "vitest": "^3.2.0",
55
- "@gasket/cjs": "^7.0.2"
55
+ "@gasket/cjs": "^7.1.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "gasket-cjs ./lib",