diff --git a/package.json b/package.json index 0157f2e3..f74d48a7 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "format": "biome format --write", "lint": "biome lint --write", "postpack": "shx rm -f oclif.manifest.json", - "prepare": "npm run build", - "prepack": "oclif manifest && oclif readme", + "prepare": "shx test -d dist || npm run build", + "prepack": "oclif manifest", "pretest": "npm run lint && npm run typecheck", "readme": "npm run ci:fix && npm run build && npm exec oclif readme", "test": "globstar -- node --import tsx --test --experimental-test-module-mocks \"test/**/*.test.ts\"", diff --git a/src/api/nes.client.ts b/src/api/nes.client.ts index c2b1c715..d21eaaeb 100644 --- a/src/api/nes.client.ts +++ b/src/api/nes.client.ts @@ -12,7 +12,7 @@ import { createReportMutation, getEolReportQuery } from './gql-operations.ts'; export const createApollo = (uri: string) => new ApolloClient({ - cache: new InMemoryCache({ addTypename: false }), + cache: new InMemoryCache(), defaultOptions: { query: { fetchPolicy: 'no-cache' }, },