Skip to content

Commit 8fc3bb2

Browse files
fix(npm): Publish to the old angular-ui-router npm package too
Closes #3683
1 parent 13ba660 commit 8fc3bb2

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
2727
"docs": "generate_docs",
2828
"docs:publish": "generate_docs && publish_docs",
29-
"release": "release --deps @uirouter/core && node ./scripts/bower_release.js",
29+
"release": "release --deps @uirouter/core && node ./scripts/npm_angular_ui_router_release.js && node ./scripts/bower_release.js",
3030
"prepublishOnly": "npm run build",
3131
"artifacts": "artifact_tagging",
3232
"precommit": "pretty-quick --staged"
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!env node
2+
'use strict';
3+
const fs = require('fs');
4+
const path = require('path');
5+
const util = require('@uirouter/publish-scripts/util');
6+
const version = require('../package.json').version;
7+
const _exec = util._exec;
8+
9+
util.packageDir();
10+
const packagePath = path.resolve(__dirname, '..', 'package.json');
11+
const packageJson = JSON.parse(fs.readFileSync(packagePath));
12+
util.ensureCleanMaster('master');
13+
packageJson.name = 'angular-ui-router';
14+
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2));
15+
16+
_exec(`npm publish`);
17+
_exec(`git checkout package.json`);

0 commit comments

Comments
 (0)