Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Force filename when calling yarn pack
Browse files Browse the repository at this point in the history
Since #60 changed tarball filename to something that slightly differs
from the default once generate by Yarn, we must explicitly force the
filename when creating the archive.
  • Loading branch information
matei-radu committed Apr 19, 2019
1 parent e19fc81 commit 229f916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@matt-block/react-native-in-app-browser",
"version": "1.4.1-rc.0",
"version": "1.4.1",
"description": "React Native in-app browser",
"keywords": [
"in-app",
Expand Down Expand Up @@ -76,4 +76,4 @@
"dependencies": {
"tinycolor2": "^1.4.1"
}
}
}
5 changes: 2 additions & 3 deletions scripts/publishCI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ const tag = getPublishingTag(process.env.CIRCLE_BRANCH!);

// Continue with publish process.
createTarball();
const tarballName = getTarballName();
setupNpm();
publish(tarballName, getCurrentVersion(), tag);
publish(getTarballName(), getCurrentVersion(), tag);

function createTarball() {
sh.exec("yarn pack");
sh.exec(`yarn pack --filename ${getTarballName()}`);
}

function publish(tarball: string, version: string, tag: string) {
Expand Down

0 comments on commit 229f916

Please sign in to comment.