Skip to content

Commit

Permalink
Use specified output file
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Jan 11, 2024
1 parent db15753 commit bbc8e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/example-todo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "rimraf dist && nsm build && tsup ./index.ts --dts --sourcemap && cpy .next dist/.next",
"build:openapi": "nextlove generate-openapi --packageDir . --apiName 'Example TODO API' --outputFile ./openapi.json",
"build:type": "nextlove generate-route-types --packageDir .",
"build:routespecs": "nextlove extract-route-specs --packageDir . --allowed-import-patterns '**/lib/zod.ts'",
"build:routespecs": "nextlove extract-route-specs --packageDir . --allowed-import-patterns '**/lib/zod.ts' --outputFile dist/extracted-route-specs.mjs",
"start": "next start",
"lint": "next lint",
"test": "ava"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const extractRouteSpecs = async (opts: GenerateRouteTypesOpts) => {

await esbuild.build({
entryPoints: [path.join(tempDir, "index.ts")],
outfile: "./built.js",
outfile: opts.outputFile,
bundle: true,
platform: "node",
format: "esm",
Expand Down

0 comments on commit bbc8e2d

Please sign in to comment.