adding generated output
This commit is contained in:
Родитель
a73fe36430
Коммит
21ee9b8519
|
@ -80,7 +80,6 @@ typings/
|
|||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -5,7 +5,8 @@
|
|||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production rollup -c",
|
||||
"start": "rollup -c -w"
|
||||
"start": "rollup -c -w",
|
||||
"release": "yarn build && yarn publish"
|
||||
},
|
||||
"dependencies": {
|
||||
"workspace-tools": "^0.9.4",
|
||||
|
@ -26,4 +27,4 @@
|
|||
"rollup-plugin-progress": "^1.1.2",
|
||||
"rollup-plugin-external-globals": "^0.6.0"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,15 +7,14 @@ import progress from "rollup-plugin-progress";
|
|||
export default {
|
||||
input: "src/index.ts",
|
||||
output: {
|
||||
dir: "dist",
|
||||
format: "cjs",
|
||||
file: "dist/package-inherit.js"
|
||||
},
|
||||
plugins: [
|
||||
typescript(),
|
||||
nodeExternals(),
|
||||
...(process.env.NODE_ENV === "production" ? [nodeResolve()] : []),
|
||||
|
||||
nodeResolve(),
|
||||
commonjs(),
|
||||
progress(),
|
||||
],
|
||||
]
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { getPackageInfos, PackageInfos } from "workspace-tools";
|
||||
import { getPackageInfos } from "workspace-tools/lib/getPackageInfos";
|
||||
import { PackageInfos } from "workspace-tools/lib/types/PackageInfo";
|
||||
import { InheritsInfo } from "./InheritsInfo";
|
||||
import parsePackageName from "parse-package-name";
|
||||
|
||||
|
|
|
@ -49,6 +49,9 @@ Please run the following command:
|
|||
console.log(`
|
||||
Usage: package-inherit [command] [--recovery]
|
||||
|
||||
This utility will update package.json in a monorepo to inherit from another package.json template.
|
||||
Currently, only "scripts", "devDependencies", and "dependencies" are merged into the package.json
|
||||
|
||||
Commands:
|
||||
|
||||
update updates the package.json for all packages in a monorepo to match inheritance
|
||||
|
|
Загрузка…
Ссылка в новой задаче