Skip to content

Commit de59d18

Browse files
fix(test_downstream_projects): make yalc a dependency of publish-scripts, use npx to call it
1 parent 3db6bcc commit de59d18

File tree

4 files changed

+288
-52
lines changed

4 files changed

+288
-52
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@
4242
"shx": "^0.2.2",
4343
"tmp": "^0.0.33",
4444
"tweak-sourcemap-paths": "0.0.3",
45-
"typedoc": "0.8.0",
45+
"typedoc": "0.11.1",
4646
"typedoc-plugin-external-module-name": "1.1.1",
4747
"typedoc-plugin-internal-external": "1.0.10",
4848
"typedoc-plugin-ui-router": "1.0.6",
4949
"ui-router-typedoc-themes": "1.0.2",
50+
"yalc": "^1.0.0-pre.21",
5051
"yargs": "^11.0.0"
5152
}
5253
}

publish_yalc_package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function publishYalcPackage(installTargetDir, installSource, flags) {
9393

9494
if (!flags.noPublish) {
9595
// Publish to local yalc registry
96-
util._exec('yalc publish');
96+
util._exec('npx yalc publish');
9797
}
9898
} finally {
9999
shelljs.mv(BUILD_TEMP_DIR, installTargetDir);

test_downstream_projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ function localPublish(packageDir) {
4040
packageDir = packageDir || PKG_DIR;
4141
process.chdir(packageDir);
4242
console.log(`Building ${packageDir} and publishing using yalc...`);
43-
util._exec('yarn build && yalc publish');
43+
util._exec('yarn build && npx yalc publish');
4444
}
4545

4646
function installUpstreamDeps(upstreamPackages) {
47-
upstreamPackages.forEach(upstream => util._exec('yalc add ' + upstream));
47+
upstreamPackages.forEach(upstream => util._exec('npx yalc add ' + upstream));
4848
}
4949

5050
function runTests() {

0 commit comments

Comments
 (0)