@gasket/plugin-fastify 7.0.0-next.66 → 7.0.0-next.67

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
@@ -37,6 +37,8 @@ module.exports = async function create(gasket, context) {
37
37
  const {
38
38
  files,
39
39
  typescript,
40
+ apiApp,
41
+ addApiRoutes = true,
40
42
  testPlugins,
41
43
  pkg,
42
44
  gasketConfig
@@ -50,7 +52,7 @@ module.exports = async function create(gasket, context) {
50
52
  fastify: devDependencies.fastify
51
53
  });
52
54
 
53
- if ('apiApp' in context && context.apiApp) {
55
+ if (apiApp && addApiRoutes) {
54
56
  const globIgnore = typescript ? '!(*.js)' : '!(*.ts)';
55
57
  files.add(`${generatorDir}/app/**/${globIgnore}`);
56
58
 
package/lib/index.d.ts CHANGED
@@ -70,6 +70,7 @@ declare module 'create-gasket-app' {
70
70
  export interface CreateContext {
71
71
  /** Flag indicating if API app is enabled */
72
72
  apiApp?: boolean;
73
+ addApiRoutes?: boolean;
73
74
  typescript?: boolean;
74
75
  }
75
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-fastify",
3
- "version": "7.0.0-next.66",
3
+ "version": "7.0.0-next.67",
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.66",
42
+ "@gasket/core": "7.0.0-next.67",
43
43
  "cross-env": "^7.0.3",
44
44
  "eslint": "^8.56.0",
45
45
  "eslint-config-godaddy": "^7.1.1",
@@ -74,5 +74,5 @@
74
74
  "jest": {
75
75
  "rootDir": "test"
76
76
  },
77
- "gitHead": "73d57d790d06eaf7d75c74bd89a9505f49be73ea"
77
+ "gitHead": "a18369e46ce5322ac965ae0dff22c2fca99d5997"
78
78
  }