update to deno
This commit is contained in:
@@ -36,13 +36,13 @@ export class SzciNpmManager {
|
||||
await this.publish();
|
||||
break;
|
||||
default:
|
||||
logger.log('error', `>>npmci npm ...<< action >>${action}<< not supported`);
|
||||
logger.log('error', `>>szci npm ...<< action >>${action}<< not supported`);
|
||||
Deno.exit(1);
|
||||
}
|
||||
} else {
|
||||
logger.log(
|
||||
'info',
|
||||
`>>npmci npm ...<< cli arguments invalid... Please read the documentation.`
|
||||
`>>szci npm ...<< cli arguments invalid... Please read the documentation.`
|
||||
);
|
||||
Deno.exit(1);
|
||||
}
|
||||
@@ -53,11 +53,11 @@ export class SzciNpmManager {
|
||||
*/
|
||||
public async prepare() {
|
||||
logger.log('info', 'running >>npm prepare<<');
|
||||
const config = this.szciRef.npmciConfig.getConfig();
|
||||
const config = this.szciRef.szciConfig.getConfig();
|
||||
let npmrcFileString: string = '';
|
||||
await plugins.smartobject.forEachMinimatch(
|
||||
Deno.env.toObject(),
|
||||
'NPMCI_TOKEN_NPM*',
|
||||
'SZCI_TOKEN_NPM*',
|
||||
(npmEnvArg: string) => {
|
||||
if (!npmEnvArg) {
|
||||
logger.log('note','found empty token...');
|
||||
@@ -103,11 +103,11 @@ export class SzciNpmManager {
|
||||
let npmAccessCliString = ``;
|
||||
let npmRegistryCliString = ``;
|
||||
let publishVerdaccioAsWell = false;
|
||||
const config = this.szciRef.npmciConfig.getConfig();
|
||||
const config = this.szciRef.szciConfig.getConfig();
|
||||
const availableRegistries: string[] = [];
|
||||
await plugins.smartobject.forEachMinimatch(
|
||||
Deno.env.toObject(),
|
||||
'NPMCI_TOKEN_NPM*',
|
||||
'SZCI_TOKEN_NPM*',
|
||||
(npmEnvArg: string) => {
|
||||
availableRegistries.push(npmEnvArg.split('|')[0]);
|
||||
}
|
||||
@@ -166,7 +166,7 @@ export class SzciNpmManager {
|
||||
logger.log('success', `Nice!!! The build for the publication was successfull!`);
|
||||
logger.log('info', `Lets clean up so we don't publish any packages that don't belong to us:`);
|
||||
// -> clean up before we publish stuff
|
||||
await bashNoError(`rm -r ./.npmci_cache`);
|
||||
await bashNoError(`rm -r ./.szci_cache`);
|
||||
await bash(`rm -r ./node_modules`);
|
||||
|
||||
logger.log('success', `Cleaned up!:`);
|
||||
|
||||
Reference in New Issue
Block a user