create-fuse-app
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -352,11 +352,2 @@ #!/usr/bin/env node | ||
var createSnippet = (appDir) => `import { ${appDir ? "createAPIRouteHandler" : "createPagesRouteHandler"} } from 'fuse/next' | ||
// NOTE: This makes Fuse.js automatically pick up every type in the /types folder | ||
// Alternatively, you can manually import each type in the /types folder and remove this snippet | ||
// @ts-expect-error | ||
const files = require.context(${appDir ? "'../../../types'" : "'../../types'"}, true, /.ts$/) | ||
files | ||
.keys() | ||
.filter((path: string) => path.includes('types/')) | ||
.forEach(files) | ||
@@ -363,0 +354,0 @@ const handler = ${appDir ? "createAPIRouteHandler" : "createPagesRouteHandler"}() |
{ | ||
"name": "create-fuse-app", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "The magical GraphQL framework", | ||
@@ -15,3 +15,4 @@ "homepage": "https://github.com/StellateHQ/fuse.js", | ||
"LICENSE", | ||
"README.md" | ||
"README.md", | ||
"CHANGELOG.md" | ||
], | ||
@@ -18,0 +19,0 @@ "repository": { |
14181
5
354