Skip to content

Commit 14a139e

Browse files
committed
fix: fix package import
1 parent 7ea43f9 commit 14a139e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/package/npm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import NpmApi from "#core/api/npm";
33
import SemanticVersion from "#core/semantic-version";
44
import { TmpDir } from "#core/tmp";
55
import { repeatAction } from "#core/utils";
6+
import Package from "#lib/package";
67

78
export default class Npm {
89
#pkg;
@@ -184,8 +185,7 @@ export default class Npm {
184185
res = await this.pkg.git.exec( [ `--work-tree=${ workTree.path }`, "checkout", commitRef, "--", "." ] );
185186
if ( !res.ok ) throw res;
186187

187-
const { "default": Package } = await import( "#lib/package" ),
188-
pkg = new Package( workTree.path );
188+
const pkg = new Package( workTree.path );
189189

190190
// pack
191191
res = await pkg.npm.api.pack( {

0 commit comments

Comments
 (0)