Skip to content

Commit

Permalink
chore: check publishConfig.directory when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Nov 21, 2021
1 parent 0d4ec5b commit 08a9115
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,20 @@ async function publishPackage(pkgName, version, runIfNotDry) {

step(`Publishing ${pkgName}...`);

const publishDir = pkg.publishConfig?.directory;

try {
await runIfNotDry(
// use of yarn is intentional here as we rely on its publishing behavior.
'yarn',
[
'publish',
...(publishDir ? ['publish', publishDir] : ['publish']),
'--new-version',
version,
...(releaseTag ? ['--tag', releaseTag] : []),
'--access',
'public',
...(publishDir ? ['--no-git-tag-version'] : []),
],
{
cwd: pkgRoot,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vime",
"version": "5.0.35",
"version": "5.2.0",
"private": true,
"license": "MIT",
"type": "module",
Expand Down
11 changes: 0 additions & 11 deletions packages/angular/projects/vime/.scripts/validate.cjs

This file was deleted.

3 changes: 2 additions & 1 deletion packages/angular/projects/vime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
"postinstall": "node ./.scripts/validate.cjs"
},
"peerDependencies": {
"@vime/core": "^5.0.0",
"@angular/common": "^11.0.4",
"@angular/core": "^11.0.4",
"rxjs": "^6.6.2"
},
"dependencies": {
"@vime/core": "^5.0.0",
"tslib": "^2.0.0"
},
"devDependencies": {
"@vime/core": "^5.0.0",
"rxjs": "^6.6.2"
},
"publishConfig": {
Expand Down

0 comments on commit 08a9115

Please sign in to comment.