Skip to content

Commit

Permalink
chore(express): update sandbox.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 19, 2021
1 parent 9175971 commit 11551e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Express Example.",
"scripts": {
"start": "npm run build && node lib/app.js",
"ts-node": "ts-node lib/app.js",
"tsnd": "ts-node-dev --inspect -- src/app.ts",
"dev": "npm run build && nodemon --inspect lib/app.js",
"types": "tsbb types",
"types:watch": "tsbb types --watch",
Expand Down Expand Up @@ -34,7 +34,7 @@
"@types/express": "4.17.6",
"@types/http-errors": "1.8.0",
"nodemon": "2.0.7",
"ts-node": "9.1.1",
"ts-node-dev": "1.1.1",
"tsbb": "2.0.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion example/express/sandbox.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"template": "node",
"container": {
"node": "12",
"startScript": "ts-node"
"startScript": "tsnd"
}
}
3 changes: 2 additions & 1 deletion example/express/src/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Express } from 'express';
import home from './home';

export default (app: Express) => {
app.use(require('./home'));
app.use(home);
};

0 comments on commit 11551e3

Please sign in to comment.