Update scripts and release for outline-react

This commit is contained in:
Dominic Gannaway
2020-12-16 22:15:14 +00:00
committed by acywatson
parent 62068f585c
commit 6e6b68cbd7
4 changed files with 40 additions and 1 deletions

View File

@ -10,7 +10,21 @@ async function prepareOutlinePackage() {
await exec(`cp -R ./packages/outline/dist ./packages/outline/npm`);
await exec(`cp -R ./packages/outline/package.json ./packages/outline/npm`);
await exec(`cp -R LICENSE ./packages/outline/npm`);
await exec(`cp -R README.md ./packages/outline/npm`);
await exec(`cp -R ./packages/outline/README.md ./packages/outline/npm`);
}
async function prepareOutlineReactPackage() {
await exec(`rm -rf ./packages/outline-react/npm`);
await exec(`mkdir ./packages/outline-react/npm`);
await exec(`cp -R ./packages/outline-react/dist ./packages/outline-react/npm`);
await exec(`cp -R ./packages/outline-react/*.js ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/OutlineEnv.js ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/OutlineHotKeys.js ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/use* ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/package.json ./packages/outline-react/npm`);
await exec(`cp -R LICENSE ./packages/outline-react/npm`);
await exec(`cp -R ./packages/outline-react/README.md ./packages/outline-react/npm`);
}
prepareOutlinePackage();
prepareOutlineReactPackage();