Skip to content

Commit

Permalink
fix(publish): downgrade npm-packlist to v5.1.1 (#844)
Browse files Browse the repository at this point in the history
* fix(publish): downgrade npm-packlist to v5.1.3
  • Loading branch information
wassim-ben-amor committed Apr 15, 2024
1 parent 2aae9e8 commit 8d18186
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 172 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
allowedVersions: '18.0.0',
},
],
ignoreDeps: ['lee-dohm/no-response'],
ignoreDeps: ['lee-dohm/no-response', 'npm-packlist'],
schedule: ['every 2 weeks on Thursday'],
}
3 changes: 1 addition & 2 deletions packages/publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@lerna-lite/cli": "workspace:*",
"@lerna-lite/core": "workspace:*",
"@lerna-lite/version": "workspace:*",
"@npmcli/arborist": "^7.4.0",
"byte-size": "^8.1.1",
"chalk": "^5.3.0",
"columnify": "^1.6.0",
Expand All @@ -49,7 +48,7 @@
"libnpmpublish": "^9.0.4",
"normalize-path": "^3.0.0",
"npm-package-arg": "^11.0.1",
"npm-packlist": "^8.0.2",
"npm-packlist": "^5.1.3",
"npm-registry-fetch": "^16.1.0",
"npmlog": "^7.0.1",
"p-map": "^7.0.1",
Expand Down
5 changes: 1 addition & 4 deletions packages/publish/src/lib/pack-directory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { LifecycleConfig, Package, PackConfig, runLifecycle } from '@lerna-lite/core';
import { tempWrite } from '@lerna-lite/version';
import Arborist from '@npmcli/arborist';
import packlist from 'npm-packlist';
import log from 'npmlog';
import { relative } from 'node:path';
Expand Down Expand Up @@ -42,9 +41,7 @@ export async function packDirectory(_pkg: Package, dir: string, options: PackCon
await runLifecycle(pkg, 'prepack', opts);
await pkg.refresh();

const arborist = new Arborist({ path: pkg.contents });
const tree = await arborist.loadActual();
const files: string[] = await packlist(tree);
const files: string[] = await packlist({ path: pkg.contents });
const stream: DataView & Readable = tar.create(
{
cwd: pkg.contents,
Expand Down

0 comments on commit 8d18186

Please sign in to comment.