Skip to content

Commit

Permalink
feat(npm): add publish script (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
aitboudad authored Sep 5, 2017
1 parent fbf1dc3 commit 0788a51
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .config/build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs"),
packages = [
'boostrap',
'bootstrap',
'core',
];

Expand Down
11 changes: 11 additions & 0 deletions .config/publish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const execSync = require('child_process').execSync,
packages = [
'core',
'bootstrap',
];

packages.map(package => {
const packagePath = `${__dirname}/../dist/${package}`;

execSync(`cd ${packagePath} && npm publish`);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngx-formly/platform",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"author": "Zama Khan Mohammed <[email protected]>",
"contributors": [
"Zama Khan Mohammed <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/ui-bootstrap/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"@ngx-formly/core": "@ngx-formly/core"
}
},
"dest": "../../dist/boostrap",
"dest": "../../dist/bootstrap",
"workingDirectory": "../../.ng_build"
}

0 comments on commit 0788a51

Please sign in to comment.