Skip to content

Commit

Permalink
fix: export problem with father and father-build
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jun 24, 2019
1 parent 49002f9 commit a320607
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
4 changes: 4 additions & 0 deletions packages/father-build/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/src/fixtures
/src/**/*.test.ts
/lib/**/*.test.js
/.local
3 changes: 2 additions & 1 deletion packages/father-build/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

export * from './build';
import build from './build';
export default build;
6 changes: 6 additions & 0 deletions packages/father/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/src/fixtures
/src/**/*.test.ts
/src/**/*.e2e.ts
/lib/**/*.test.js
/lib/**/*.e2e.js
/.local
2 changes: 1 addition & 1 deletion packages/father/bin/father.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function build() {
process.exit(1);
}

require('father-build').build({
require('father-build').default({
cwd,
watch: args.w || args.watch,
buildArgs,
Expand Down
7 changes: 1 addition & 6 deletions packages/father/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,5 @@
"clock157 <clock157@163.com> (https://github.com/clock157)",
"chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"
],
"license": "MIT",
"files": [
"bin",
"lib",
"src"
]
"license": "MIT"
}
3 changes: 2 additions & 1 deletion packages/father/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as doc from './doc';
import build from 'father-build';

export { build } from 'father-build';
export { build };
export { doc };
2 changes: 0 additions & 2 deletions packages/father/test.js

This file was deleted.

0 comments on commit a320607

Please sign in to comment.