@gasket/plugin-fastify 7.0.0-next.61 → 7.0.0-next.63

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/create.js CHANGED
@@ -17,18 +17,7 @@ module.exports = async function create(gasket, context) {
17
17
  });
18
18
 
19
19
  if ('apiApp' in context && context.apiApp) {
20
- context.gasketConfig.add('fastify', {
21
- routes: []
22
- });
23
-
24
- if ('typescript' in context && context.typescript) {
25
- context.files.add(`${generatorDir}/**/!(*.js)`);
26
- } else {
27
- context.files.add(`${generatorDir}/**/!(*.ts)`);
28
- }
29
-
30
- context.gasketConfig
31
- .addImport('{ routes }', './routes/index.js')
32
- .injectValue('fastify.routes', 'routes');
20
+ const glob = context.typescript ? '**/*.ts' : '**/*.js';
21
+ context.files.add(`${generatorDir}/${glob}`);
33
22
  }
34
23
  };
package/lib/index.d.ts CHANGED
@@ -69,6 +69,7 @@ declare module 'create-gasket-app' {
69
69
  export interface CreateContext {
70
70
  /** Flag indicating if API app is enabled */
71
71
  apiApp?: boolean;
72
+ typescript?: boolean;
72
73
  }
73
74
  }
74
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-fastify",
3
- "version": "7.0.0-next.61",
3
+ "version": "7.0.0-next.63",
4
4
  "description": "Adds fastify support to your application",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-plugin-fastify",
41
41
  "devDependencies": {
42
- "@gasket/core": "7.0.0-next.61",
42
+ "@gasket/core": "7.0.0-next.63",
43
43
  "cross-env": "^7.0.3",
44
44
  "eslint": "^8.56.0",
45
45
  "eslint-config-godaddy": "^7.1.1",
@@ -71,5 +71,5 @@
71
71
  "eslintIgnore": [
72
72
  "generator"
73
73
  ],
74
- "gitHead": "6bfc613e64088429e95e89211008b1c9ab530ca7"
74
+ "gitHead": "53d9d2f59b438d94d171eeac528c6aa2346c142e"
75
75
  }