Skip to content

Commit

Permalink
Merge branch 'master' into feat/makeAxios
Browse files Browse the repository at this point in the history
  • Loading branch information
pikax committed Apr 20, 2020
2 parents 04fcb83 + 89197d5 commit 4ff5edc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/vue-composable/package.json
Expand Up @@ -37,7 +37,8 @@
"homepage": "https://pikax.me/vue-composable/composable",
"sideEffects": false,
"peerDependencies": {
"@vue/runtime-core": "^3.0.0-beta.1"
"@vue/composition-api": "^0.5.0",
"vue": "^2.6.10"
},
"peerDependencies3": {
"@vue/runtime-core": "^3.0.0-beta.1"
Expand Down
4 changes: 1 addition & 3 deletions scripts/build.js
Expand Up @@ -43,8 +43,6 @@ async function build(target, targetVersion) {

const pkgDir = path.resolve(`packages/${target}`);
const pkg = require(`${pkgDir}/package.json`);
const restorePkg = () =>
fs.writeFile(`${pkgDir}/package.json`, JSON.stringify(pkg, null, 2));
const renameRestore = await apiRename(target, targetVersion);
try {
// only build published packages for release
Expand Down Expand Up @@ -156,7 +154,7 @@ async function build(target, targetVersion) {
await fs.remove(`${pkgDir}/dist/packages`);
}
} finally {
await restorePkg();
// await restorePkg();
await renameRestore();
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.js
Expand Up @@ -19,7 +19,7 @@ async function publish(package, targetVersion) {

const pkgDir = resolvePkgDir(package);
await build(package, targetVersion);
const pkg = require(`${pkgDir}/package.json`);
const pkg = JSON.parse(fs.readFileSync(`${pkgDir}/package.json`)); // require(`${pkgDir}/package.json`);

const currentMinor = +mainPkg.version.split(".").slice(-1);
const majorVersion = mainPkg.version.split("-")[0];
Expand Down

0 comments on commit 4ff5edc

Please sign in to comment.