Skip to content

Commit

Permalink
Revert "fix: update dist/index.js to dist/src/index.js (#2594)"
Browse files Browse the repository at this point in the history
This reverts commit 50713eb.
  • Loading branch information
dvdsgl authored May 13, 2024
1 parent 50713eb commit c9b15a9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 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/src/index.js",
"main": "dist/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/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/**"
},
Expand Down Expand Up @@ -77,5 +77,5 @@
"files": [
"dist"
],
"bin": "dist/src/index.js"
"bin": "dist/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/src/index.js",
"main": "dist/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/src/index.js",
"main": "dist/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/src/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/quicktype/quicktype",
"scripts": {
Expand Down
9 changes: 3 additions & 6 deletions script/quicktype
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"

0 comments on commit c9b15a9

Please sign in to comment.