From 2d172b3c205a1d22a12b04bf42797f227a228bbb Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 12 May 2024 23:49:24 -0400 Subject: [PATCH] fix: update `dist/index.js` to `dist/src/index.js` Signed-off-by: Rui Chen --- 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, 13 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1dd564e76..6656cd0b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "typescript": "4.9.5" }, "bin": { - "quicktype": "dist/index.js" + "quicktype": "dist/src/index.js" }, "devDependencies": { "@tsconfig/node18": "^1.0.1", diff --git a/package.json b/package.json index 4b723ca95..c8258aff1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "quicktype", "version": "23.0.0", "license": "Apache-2.0", - "main": "dist/index.js", + "main": "dist/src/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/index.js", + "debug": "node --inspect-brk --max-old-space-size=4096 ./dist/src/index.js", "lint": "eslint src/** packages/*/src/**", "lint:fix": "eslint --fix src/** packages/*/src/**" }, @@ -77,5 +77,5 @@ "files": [ "dist" ], - "bin": "dist/index.js" + "bin": "dist/src/index.js" } diff --git a/packages/quicktype-core/package.json b/packages/quicktype-core/package.json index 580100e8d..419059fe3 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/index.js", + "main": "dist/src/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 8a17ead16..d644f38af 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/index.js", + "main": "dist/src/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 b624fd081..7ed4465e9 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/index.js", + "main": "dist/src/index.js", "types": "dist/index.d.ts", "repository": "https://github.com/quicktype/quicktype", "scripts": { diff --git a/script/quicktype b/script/quicktype index 458c12a01..aa5bfc50b 100755 --- a/script/quicktype +++ b/script/quicktype @@ -10,7 +10,10 @@ 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/index.js" "$@" +node --stack_trace_limit=100 --max-old-space-size=4096 "$BASEDIR/dist/src/index.js" "$@"