diff --git a/lib/generators/library/templates/.umirc.library.js b/lib/generators/library/templates/.fatherrc.js similarity index 100% rename from lib/generators/library/templates/.umirc.library.js rename to lib/generators/library/templates/.fatherrc.js diff --git a/lib/generators/library/templates/.umirc.library.ts b/lib/generators/library/templates/.fatherrc.ts similarity index 69% rename from lib/generators/library/templates/.umirc.library.ts rename to lib/generators/library/templates/.fatherrc.ts index 294ed3a..963b2be 100644 --- a/lib/generators/library/templates/.umirc.library.ts +++ b/lib/generators/library/templates/.fatherrc.ts @@ -1,4 +1,4 @@ -import { IBundleOptions } from 'umi-library/src/types'; +import { IBundleOptions } from 'father'; const options: IBundleOptions = { cjs: 'rollup', diff --git a/lib/generators/library/templates/package.json b/lib/generators/library/templates/package.json index f9668ff..a474773 100644 --- a/lib/generators/library/templates/package.json +++ b/lib/generators/library/templates/package.json @@ -10,18 +10,18 @@ }, "repository": "<%= repo %>/<%= name %>", "scripts": { - "dev": "umi-lib doc dev", - "build": "umi-lib build" + "dev": "father doc dev", + "build": "father build" }, "peerDependencies": { "react": "16.x" }, "devDependencies": { <% if (isTypeScript) { -%> - "umi-library": "^1.1.1", + "father": "^2.16.0", "typescript": "^3.3.3" <% } else { -%> - "umi-library": "^1.1.1" + "father": "^2.16.0" <% } -%> }, "license": "MIT"