Skip to content

Commit

Permalink
fix: Restores old build output by removing package.json import (#2596)
Browse files Browse the repository at this point in the history
* clean before each build

* fix top level package.json import
  • Loading branch information
inferrinizzard committed May 13, 2024
1 parent ec49e95 commit 2d4ce03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"scripts": {
"pub": "script/publish.sh",
"build": "npm run build --workspaces --if-present && tsc",
"build": "npm run clean && npm run build --workspaces --if-present && tsc",
"test": "script/test",
"start": "script/watch",
"clean": "rm -rf dist node_modules *~ packages/*/{dist,node_modules,out}",
"clean": "rm -rf dist *~ packages/*/{dist,out}",
"debug": "node --inspect-brk --max-old-space-size=4096 ./dist/index.js",
"lint": "eslint src/** packages/*/src/**",
"lint:fix": "eslint --fix src/** packages/*/src/**"
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ import {
import { GraphQLInput } from "quicktype-graphql-input";
import { schemaForTypeScriptSources } from "quicktype-typescript-input";

import packageJSON from "../package.json";

import { CompressedJSONFromStream } from "./CompressedJSONFromStream";
import { introspectServer } from "./GraphQLIntrospection";
import { type GraphQLTypeSource, type JSONTypeSource, type SchemaTypeSource, type TypeSource } from "./TypeSource";
import { urlsFromURLGrammar } from "./URLGrammar";

// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
const packageJSON = require("../package.json");

const wordWrap: (s: string) => string = _wordwrap(90);

export interface CLIOptions {
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"outDir": "dist",
"baseUrl": "src",
"resolveJsonModule": true
"baseUrl": "src"
},
"include": ["src"]
}

0 comments on commit 2d4ce03

Please sign in to comment.