🔧 Reconfigure packages
This commit is contained in:
parent
38bb833fd2
commit
87b097e9d8
97 changed files with 1113 additions and 882 deletions
|
@ -23,9 +23,8 @@
|
|||
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
|
||||
"start": "rollup -c -w"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"dependencies": {
|
||||
"@freesewing/i18n": "^2.0.0-beta.14",
|
||||
"@freesewing/pattern-info": "^2.0.0-beta.14",
|
||||
"chalk": "^2.4.2",
|
||||
"commander": "^2.19.0",
|
||||
"conf": "^2.2.0",
|
||||
|
@ -41,8 +40,11 @@
|
|||
"p-each-series": "^1.0.0",
|
||||
"parse-git-config": "^3.0.0",
|
||||
"validate-npm-package-name": "^3.0.0",
|
||||
"which": "^1.3.1"
|
||||
"which": "^1.3.1",
|
||||
"@freesewing/i18n": "^2.0.0-beta.14",
|
||||
"@freesewing/pattern-info": "^2.0.0-beta.14"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"files": [
|
||||
"lib",
|
||||
"template",
|
||||
|
|
|
@ -18,20 +18,23 @@ import {
|
|||
module
|
||||
} from "./package.json";
|
||||
|
||||
const output = [
|
||||
{
|
||||
file: main,
|
||||
format: "cjs",
|
||||
sourcemap: true
|
||||
}
|
||||
];
|
||||
if (typeof module !== "undefined")
|
||||
output.push({
|
||||
file: module,
|
||||
format: "es",
|
||||
sourcemap: true
|
||||
});
|
||||
|
||||
export default {
|
||||
input: "src/index.js",
|
||||
output: [
|
||||
{
|
||||
file: main,
|
||||
format: "cjs",
|
||||
sourcemap: true
|
||||
},
|
||||
{
|
||||
file: module,
|
||||
format: "es",
|
||||
sourcemap: true
|
||||
}
|
||||
],
|
||||
output,
|
||||
plugins: [
|
||||
peerDepsExternal(),
|
||||
resolve({ modulesOnly: true }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue