Skip to content

Commit

Permalink
remove TypeScript to simplify reproduction
Browse files Browse the repository at this point in the history
  • Loading branch information
gevalo1 committed Apr 23, 2024
1 parent ff44561 commit f97efd5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 57 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Start
run: npm run start
25 changes: 1 addition & 24 deletions package-lock.json

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

12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,17 @@
"version": "0.0.0",
"description": "test",
"private": true,
"main": "./dist/src/server.js",
"main": "./src/server.js",
"type": "module",
"scripts": {
"build": "tsc",
"start": "node --experimental-loader newrelic/esm-loader.mjs -r newrelic ./dist/src/server.js"
"start": "node --experimental-loader newrelic/esm-loader.mjs -r newrelic ./src/server.js"
},
"files": [
"dist",
"newrelic.cjs"
],
"dependencies": {
"fastify": "^4.26.2",
"newrelic": "^11.15.0"
},
"devDependencies": {
"@tsconfig/recommended": "1.0.6",
"@types/node": "^20.11.30",
"typescript": "^5.4.5"
}
"devDependencies": {}
}
2 changes: 1 addition & 1 deletion src/server.ts → src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const start = async () => {
});
};

start().catch((error: Error) => {
start().catch((error) => {
console.log('Server error', { error });

process.exit(1);
Expand Down
20 changes: 0 additions & 20 deletions tsconfig.json

This file was deleted.

0 comments on commit f97efd5

Please sign in to comment.