From c9b15a9ca7594df44005a05b49a0a4d05429287c Mon Sep 17 00:00:00 2001 From: David Siegel Date: Sun, 12 May 2024 21:23:10 -0700 Subject: [PATCH] Revert "fix: update `dist/index.js` to `dist/src/index.js` (#2594)" This reverts commit 50713eb075a0198fca18cca6ac312fab1601e064. --- package-lock.json | 2 +- package.json | 6 +++--- packages/quicktype-core/package.json | 2 +- packages/quicktype-graphql-input/package.json | 2 +- packages/quicktype-typescript-input/package.json | 2 +- script/quicktype | 9 +++------ 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6656cd0b3..1dd564e76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "typescript": "4.9.5" }, "bin": { - "quicktype": "dist/src/index.js" + "quicktype": "dist/index.js" }, "devDependencies": { "@tsconfig/node18": "^1.0.1", diff --git a/package.json b/package.json index c8258aff1..4b723ca95 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "quicktype", "version": "23.0.0", "license": "Apache-2.0", - "main": "dist/src/index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "repository": "https://github.com/quicktype/quicktype", "engines": { @@ -14,7 +14,7 @@ "test": "script/test", "start": "script/watch", "clean": "rm -rf dist node_modules *~ packages/*/{dist,node_modules,out}", - "debug": "node --inspect-brk --max-old-space-size=4096 ./dist/src/index.js", + "debug": "node --inspect-brk --max-old-space-size=4096 ./dist/index.js", "lint": "eslint src/** packages/*/src/**", "lint:fix": "eslint --fix src/** packages/*/src/**" }, @@ -77,5 +77,5 @@ "files": [ "dist" ], - "bin": "dist/src/index.js" + "bin": "dist/index.js" } diff --git a/packages/quicktype-core/package.json b/packages/quicktype-core/package.json index 419059fe3..580100e8d 100644 --- a/packages/quicktype-core/package.json +++ b/packages/quicktype-core/package.json @@ -3,7 +3,7 @@ "version": "18.0.15", "description": "The quicktype engine as a library", "license": "Apache-2.0", - "main": "dist/src/index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "repository": "https://github.com/quicktype/quicktype", "scripts": { diff --git a/packages/quicktype-graphql-input/package.json b/packages/quicktype-graphql-input/package.json index d644f38af..8a17ead16 100644 --- a/packages/quicktype-graphql-input/package.json +++ b/packages/quicktype-graphql-input/package.json @@ -3,7 +3,7 @@ "version": "18.0.15", "package": "Package for using GraphQL as an input language to quicktype", "license": "Apache-2.0", - "main": "dist/src/index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "repository": "https://github.com/quicktype/quicktype", "scripts": { diff --git a/packages/quicktype-typescript-input/package.json b/packages/quicktype-typescript-input/package.json index 7ed4465e9..b624fd081 100644 --- a/packages/quicktype-typescript-input/package.json +++ b/packages/quicktype-typescript-input/package.json @@ -3,7 +3,7 @@ "version": "18.0.15", "description": "Package for using TypeScript as an input language to quicktype", "license": "Apache-2.0", - "main": "dist/src/index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "repository": "https://github.com/quicktype/quicktype", "scripts": { diff --git a/script/quicktype b/script/quicktype index aa5bfc50b..458c12a01 100755 --- a/script/quicktype +++ b/script/quicktype @@ -10,10 +10,7 @@ SCRIPTDIR=$(dirname "$0") BASEDIR="$SCRIPTDIR/.." -if [ x"$SKIP_BUILD" = x ]; then - ( - cd "$BASEDIR" - npm run build &>/dev/null - ) +if [ x"$SKIP_BUILD" = x ] ; then + ( cd "$BASEDIR" ; npm run build &>/dev/null ) fi -node --stack_trace_limit=100 --max-old-space-size=4096 "$BASEDIR/dist/src/index.js" "$@" +node --stack_trace_limit=100 --max-old-space-size=4096 "$BASEDIR/dist/index.js" "$@"