Skip to content

Commit

Permalink
make fib-app ts-debugable
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016 committed Nov 28, 2018
1 parent 7f32d3c commit 0679ccc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ docs
test.db*

src

/lib.ts
7 changes: 7 additions & 0 deletions lib.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import util = require('util')

if (util.buildInfo().fibjs !== '0.25.0') {
module.exports = require('./src')
} else {
module.exports = require('./lib/index.js')
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fib-app",
"version": "1.13.0",
"description": "",
"main": "lib/app",
"main": "./lib",
"types": "@types/index.d.ts",
"scripts": {
"build": "fib-typify src -o lib -c .typifyrc.json",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export = require('./app')

0 comments on commit 0679ccc

Please sign in to comment.