Skip to content

Commit

Permalink
[Change] #1 enhanced ts setup, import instead of require
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Jan 10, 2024
1 parent 4ed7c58 commit ba3001f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.1",
"description": "Leaflet Osmand React ExpressJS Coordinates (X)\r > Remember an \"X\" marks the spot.",
"main": "index.js",
"type": "module",
"scripts": {
"build": "npx tsc",
"start": "node dist/app.js",
Expand Down
1 change: 0 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const app = express();
const port = 80;

app.get('/', (req: Request, res: Response) => {
var test = "test";
res.send('Hello World, via TypeScript and Node.js!');

});
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2022",
"sourceMap": true
}
}

0 comments on commit ba3001f

Please sign in to comment.