Skip to content

Commit

Permalink
repro
Browse files Browse the repository at this point in the history
  • Loading branch information
flleeppyy committed Dec 19, 2023
1 parent 78efeb7 commit 37ef7fc
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 4 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"dependencies": {
"ts-node": "latest",
"typescript": "latest"
}
},
"engines": {
"node": ">=20.6.0",
"pnpm": ">=8.0.0"
},
"type": "module"
}
138 changes: 138 additions & 0 deletions pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions run.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash

# Install a specific version of node
n lts
nvm install 20.10.0

# Install package.json dependencies
yarn
pnpm install

# Run ts-node
yarn ts-node ./example.ts
pnpm ts-node ./src/index.ts

echo "Process exited with code: $?"
echo
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("hi");
54 changes: 54 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"allowArbitraryExtensions": true,
"alwaysStrict": true,
"baseUrl": ".",
"checkJs": false,
"downlevelIteration": true,
"declaration": false,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"importHelpers": true,
"incremental": true,
"inlineSources": false,
"isolatedModules": true,
"jsx": "preserve",
"lib": ["ES2023"],
"module": "NodeNext",
// "moduleResolution": "Node",
"noEmit": false,
"noEmitHelpers": true,
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": false,
"noImplicitThis": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"outDir": "./dist",
"pretty": true,
"removeComments": true,
"resolvePackageJsonImports": true,
"resolvePackageJsonExports": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": false,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"suppressImplicitAnyIndexErrors": false,
"target": "ES2020",
"verbatimModuleSyntax": true,
"useDefineForClassFields": true
},
"ts-node": {
"experimentalSpecifierResolution": "node",
"transpileOnly": true,
"esm": true
}
}

0 comments on commit 37ef7fc

Please sign in to comment.