Skip to content

Commit

Permalink
fix(tempy): upgraded to the latest version of tempy
Browse files Browse the repository at this point in the history
  • Loading branch information
travi authored and gr2m committed Jan 13, 2023
1 parent 2d8ff15 commit f1992a5
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 142 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { castArray, defaultTo } from 'lodash-es';
import AggregateError from 'aggregate-error';
import tempy from 'tempy';
import {temporaryFile} from 'tempy';
import setLegacyToken from './lib/set-legacy-token.js';
import getPkg from './lib/get-pkg.js';
import verifyNpmConfig from './lib/verify-config.js';
Expand All @@ -11,7 +11,7 @@ import publishNpm from './lib/publish.js';

let verified;
let prepared;
const npmrc = tempy.file({name: '.npmrc'});
const npmrc = temporaryFile({name: '.npmrc'});

export async function verifyConditions(pluginConfig, context) {
// If the npm publish plugin is used and has `npmPublish`, `tarballDir` or `pkgRoot` configured, validate them now in order to prevent any release if the configuration is wrong
Expand Down
Loading

0 comments on commit f1992a5

Please sign in to comment.