@gasket/preset-nextjs 7.0.0-next.69 → 7.0.0-next.70

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/lib/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import '@gasket/plugin-express';
2
- import '@gasket/plugin-fastify';
3
2
  import '@gasket/plugin-https';
4
3
  import '@gasket/plugin-nextjs';
5
4
  import '@gasket/plugin-webpack';
@@ -23,10 +23,9 @@ export default async function presetConfig(gasket, context) {
23
23
  pluginLint
24
24
  ];
25
25
 
26
- if ('server' in context) {
27
- const frameworkPlugin = context.server === 'express'
28
- ? await import('@gasket/plugin-express')
29
- : await import('@gasket/plugin-fastify');
26
+
27
+ if (context.nextServerType === 'customServer') {
28
+ const frameworkPlugin = await import('@gasket/plugin-express');
30
29
 
31
30
  plugins.push(frameworkPlugin.default || frameworkPlugin);
32
31
  }
@@ -13,21 +13,5 @@ export default async function presetPrompt(gasket, context, { prompt }) {
13
13
  await nextJsPrompts.promptNextServerType(context, prompt);
14
14
  await nextJsPrompts.promptNextDevProxy(context, prompt);
15
15
 
16
- if (!('server' in context) && context.nextServerType === 'customServer') {
17
- const { server } = await prompt([
18
- {
19
- name: 'server',
20
- message: 'Which custom server framework would you like to use?',
21
- type: 'list',
22
- choices: [
23
- { name: 'Express', value: 'express' },
24
- { name: 'Fastify', value: 'fastify' }
25
- ]
26
- }
27
- ]);
28
-
29
- Object.assign(context, { server });
30
- }
31
-
32
16
  return context;
33
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/preset-nextjs",
3
- "version": "7.0.0-next.69",
3
+ "version": "7.0.0-next.70",
4
4
  "description": "Basic NextJS Framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -31,19 +31,18 @@
31
31
  },
32
32
  "homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-preset-nextjs",
33
33
  "dependencies": {
34
- "@gasket/plugin-cypress": "7.0.0-next.69",
35
- "@gasket/plugin-express": "7.0.0-next.69",
36
- "@gasket/plugin-fastify": "7.0.0-next.69",
37
- "@gasket/plugin-https": "7.0.0-next.69",
38
- "@gasket/plugin-intl": "7.0.0-next.69",
39
- "@gasket/plugin-jest": "7.0.0-next.69",
40
- "@gasket/plugin-lint": "7.0.0-next.69",
41
- "@gasket/plugin-mocha": "7.0.0-next.69",
42
- "@gasket/plugin-nextjs": "7.0.0-next.69",
43
- "@gasket/plugin-typescript": "7.0.0-next.69",
44
- "@gasket/plugin-webpack": "7.0.0-next.69",
45
- "@gasket/plugin-winston": "7.0.0-next.69",
46
- "@gasket/utils": "7.0.0-next.69"
34
+ "@gasket/plugin-cypress": "7.0.0-next.70",
35
+ "@gasket/plugin-express": "7.0.0-next.70",
36
+ "@gasket/plugin-https": "7.0.0-next.70",
37
+ "@gasket/plugin-intl": "7.0.0-next.70",
38
+ "@gasket/plugin-jest": "7.0.0-next.70",
39
+ "@gasket/plugin-lint": "7.0.0-next.70",
40
+ "@gasket/plugin-mocha": "7.0.0-next.70",
41
+ "@gasket/plugin-nextjs": "7.0.0-next.70",
42
+ "@gasket/plugin-typescript": "7.0.0-next.70",
43
+ "@gasket/plugin-webpack": "7.0.0-next.70",
44
+ "@gasket/plugin-winston": "7.0.0-next.70",
45
+ "@gasket/utils": "7.0.0-next.70"
47
46
  },
48
47
  "devDependencies": {
49
48
  "cross-env": "^7.0.3",
@@ -71,5 +70,5 @@
71
70
  "jest": {
72
71
  "transform": {}
73
72
  },
74
- "gitHead": "b5645f2b3cc18080304c9dbdfeadf6d0005e3893"
73
+ "gitHead": "f261bf98ca587e646dc61fa49dd50859a0f43a47"
75
74
  }