Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update dist/index.js to dist/src/index.js #2594

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" "$@"
Loading