Skip to content

Commit

Permalink
fix: wrong line number in stack trace
Browse files Browse the repository at this point in the history
npm uninstall ts-node source-map-support @types/source-map-support
npm install --save-dev tsx
  • Loading branch information
ANGkeith committed Oct 15, 2024
1 parent 503a0e9 commit 84f7a78
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 36 deletions.
106 changes: 76 additions & 30 deletions package-lock.json

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

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testTimeout 60000",
"test-except-dind": "npm run test -- --testPathIgnorePatterns=\"/dind.*/|/node_modules/|/.gitlab-ci-local/\"",
"coverage": "npm run build && FORCE_COLOR=1 npm run test -- --coverage --verbose",
"start": "NODE_OPTIONS='--loader ts-node/esm' ts-node --log-error src/index.ts --cwd examples/docker-compose-nodejs",
"dev": "touch .gitlab-ci.yml && NODE_OPTIONS='--loader ts-node/esm' nodemon -e ts --watch src --watch .gitlab-ci.yml --exec ts-node src/index.ts",
"start": "tsx src/index.ts --cwd examples/docker-compose-nodejs",
"dev": "touch .gitlab-ci.yml && nodemon -e ts --watch src --watch .gitlab-ci.yml --exec tsx src/index.ts",
"fetch-and-patch-schema": "curl https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json -sf | jq 'del(.. | .pattern?)' > src/schema/schema.json"
},
"dependencies": {
Expand All @@ -41,7 +41,6 @@
"object-traversal": "1.x.x",
"p-map": "4.x.x",
"pretty-hrtime": "1.x.x",
"source-map-support": "0.5.x",
"split2": "4.x.x",
"terminal-link": "2.1.1",
"yargs": "17.x.x"
Expand All @@ -57,7 +56,6 @@
"@types/micromatch": "^4.0.7",
"@types/node": "18.x.x",
"@types/pretty-hrtime": "1.x.x",
"@types/source-map-support": "0.5.x",
"@types/split2": "4.x.x",
"@types/yargs": "17.x.x",
"@typescript-eslint/eslint-plugin": "7.x.x",
Expand All @@ -71,7 +69,7 @@
"jest-when": "3.x.x",
"nodemon": "^3.1.1",
"ts-jest": "29.x.x",
"ts-node": "10.x.x",
"tsx": "^4.19.1",
"typescript": "5.x.x"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
import "source-map-support/register.js";
import chalk from "chalk";
import yargs from "yargs";
import {Parser} from "./parser.js";
Expand Down

0 comments on commit 84f7a78

Please sign in to comment.