We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd0707 commit 5f447c1Copy full SHA for 5f447c1
tools/release/publish-release.ts
@@ -1,6 +1,7 @@
1
import chalk from 'chalk';
2
import {spawnSync} from 'child_process';
3
import {readFileSync, unlinkSync} from 'fs';
4
+import {homedir} from 'os';
5
import {join} from 'path';
6
import {BaseReleaseTask} from './base-release-task';
7
import {checkReleaseOutput} from './check-release-output';
@@ -132,7 +133,7 @@ class PublishReleaseTask extends BaseReleaseTask {
132
133
console.info(chalk.yellow(` ${newReleaseUrl}`));
134
135
// Remove file at ~/.npmrc after release is complete.
- unlinkSync('~/.npmrc');
136
+ unlinkSync(`${homedir()}/.npmrc`);
137
}
138
139
/**
0 commit comments