@gasket/plugin-fastify 6.38.1 → 6.38.5

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.
Files changed (2) hide show
  1. package/lib/index.js +10 -0
  2. package/package.json +7 -4
package/lib/index.js CHANGED
@@ -13,9 +13,19 @@ module.exports = {
13
13
  * @public
14
14
  */
15
15
  create: async function create(gasket, context) {
16
+ const generatorDir = `${ __dirname }/../generator`;
17
+
16
18
  context.pkg.add('dependencies', {
17
19
  fastify: peerDependencies.fastify
18
20
  });
21
+
22
+ if (context.apiApp) {
23
+ context.files.add(`${ generatorDir }/**/*`);
24
+
25
+ context.gasketConfig.add('fastify', {
26
+ routes: './routes/*'
27
+ });
28
+ }
19
29
  },
20
30
  /**
21
31
  * Create the Fastify instance and setup the lifecycle hooks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-fastify",
3
- "version": "6.38.1",
3
+ "version": "6.38.5",
4
4
  "description": "Adds fastify support to your application",
5
5
  "main": "lib",
6
6
  "types": "lib/index.d.ts",
@@ -40,10 +40,10 @@
40
40
  "compression": "^1.7.2",
41
41
  "cookie-parser": "^1.4.3",
42
42
  "diagnostics": "^2.0.2",
43
- "middie": "5.4.0"
43
+ "middie": "^5.4.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@gasket/engine": "^6.38.1",
46
+ "@gasket/engine": "^6.38.5",
47
47
  "cross-env": "^7.0.3",
48
48
  "eslint": "^8.7.0",
49
49
  "eslint-config-godaddy": "^7.0.0",
@@ -68,5 +68,8 @@
68
68
  "unicorn/filename-case": "error"
69
69
  }
70
70
  },
71
- "gitHead": "2107f35f2995454c07877cfc1eac6cfabfae7889"
71
+ "eslintIgnore": [
72
+ "generator"
73
+ ],
74
+ "gitHead": "e440984a7bdbd12ee13052dad690fee6a60cc360"
72
75
  }