Skip to content

Commit

Permalink
issue #63 , 先与pomelo的逻辑保持一致。
Browse files Browse the repository at this point in the history
  • Loading branch information
whtiehack committed Dec 18, 2019
1 parent f82edc6 commit baf0606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pinus/lib/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class Application {
*/
init(opts ?: ApplicationOptions) {
opts = opts || {};
let base = opts.base || process.cwd();
let base = opts.base || path.dirname(require.main.filename);
this.set(Constants.RESERVED.BASE, base);
this.base = base;

Expand Down

0 comments on commit baf0606

Please sign in to comment.