Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Commit

Permalink
fix: fixed codegen in delivery process
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Jul 9, 2021
1 parent f8a156d commit a7e3d44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/postcodegen.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { rm } from 'node:fs/promises';

const graphqlPokemonTsFile = new URL('../generated/ts/graphql-pokemon.ts', import.meta.url);
const starWarsApiTsFile = new URL('../generated/ts/star-wars-api.ts', import.meta.url);

const options = { force: true, recursive: true };

await Promise.all([
rm(graphqlPokemonTsFile, options) //
rm(starWarsApiTsFile, options) //
]);
6 changes: 3 additions & 3 deletions scripts/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const rootDir = new URL('../', import.meta.url);
const tsDir = new URL('generated/ts/', rootDir);

const tsconfigFile = new URL('tsconfig.generated.json', rootDir);
const inputFile = new URL('graphql-pokemon.ts', tsDir);
const cjsOutputFile = new URL('graphql-pokemon.cjs', tsDir);
const mjsOutputFile = new URL('graphql-pokemon.mjs', tsDir);
const inputFile = new URL('star-wars-api.ts', tsDir);
const cjsOutputFile = new URL('star-wars-api.cjs', tsDir);
const mjsOutputFile = new URL('star-wars-api.mjs', tsDir);

export default {
input: fileURLToPath(inputFile),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.generated.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.base.json",
"files": ["generated/ts/graphql-pokemon.ts"]
"files": ["generated/ts/star-wars-api.ts"]
}

0 comments on commit a7e3d44

Please sign in to comment.