Skip to content

Commit 33ff2ab

Browse files
committed
Updates to publish script
1 parent 0fcc8a8 commit 33ff2ab

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@
5555
"rnpm": {
5656
"plugin": "./command.js"
5757
}
58-
}
58+
}

scripts/publish.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ content.name = ALTERNATE_NAME;
1010

1111
fs.writeFileSync('../package.json', JSON.stringify(content, null, 2));
1212

13+
shell.cd('..');
1314
shell.exec('npm publish');
15+
shell.cd('./scripts');
1416

1517
content.name = DEFAULT_NAME;
1618

1719
fs.writeFileSync('../package.json', JSON.stringify(content, null, 2));
1820

21+
shell.cd('..');
1922
shell.exec('npm publish');
23+
shell.cd('./scripts');

0 commit comments

Comments
 (0)