Skip to content

Commit

Permalink
fix: update dist/index.js to dist/src/index.js (#2594)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed May 13, 2024
1 parent 79b94e5 commit 50713eb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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/**"
},
Expand Down Expand Up @@ -77,5 +77,5 @@
"files": [
"dist"
],
"bin": "dist/index.js"
"bin": "dist/src/index.js"
}
2 changes: 1 addition & 1 deletion packages/quicktype-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/quicktype-graphql-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/quicktype-typescript-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
9 changes: 6 additions & 3 deletions script/quicktype
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"

0 comments on commit 50713eb

Please sign in to comment.