@pnpm/fs.packlist 1100.0.2 → 1100.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/lib/index.js +12 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @pnpm/fs.packlist
|
|
2
2
|
|
|
3
|
+
## 1100.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Republished every package: the tarballs published by the v11.13.1 through v11.16.0 releases were missing most of their compiled files due to a packing bug [#13164](https://github.com/pnpm/pnpm/issues/13164).
|
|
8
|
+
|
|
9
|
+
## 1100.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fixed `pnpm pack` applying workspace-root ignore rules when a workspace package has its own `.npmignore` file.
|
|
14
|
+
|
|
3
15
|
## 1100.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -8,7 +8,18 @@ export async function packlist(pkgDir, opts) {
|
|
|
8
8
|
const workspaceDir = opts?.workspaceDir == null ? undefined : path.resolve(opts.workspaceDir);
|
|
9
9
|
const pkg = opts?.manifest ?? readPackageJson(resolvedPkgDir);
|
|
10
10
|
const tree = buildRootTree(resolvedPkgDir, pkg);
|
|
11
|
-
const
|
|
11
|
+
const hasWorkspaceContext = workspaceDir != null && workspaceDir !== resolvedPkgDir && isSubdir(workspaceDir, resolvedPkgDir);
|
|
12
|
+
let hasNpmIgnore = false;
|
|
13
|
+
if (hasWorkspaceContext) {
|
|
14
|
+
try {
|
|
15
|
+
hasNpmIgnore = (await fs.promises.stat(path.join(resolvedPkgDir, '.npmignore'))).isFile();
|
|
16
|
+
}
|
|
17
|
+
catch (err) {
|
|
18
|
+
if (!util.types.isNativeError(err) || !('code' in err) || err.code !== 'ENOENT')
|
|
19
|
+
throw err;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const packlistOpts = hasWorkspaceContext && !hasNpmIgnore
|
|
12
23
|
? { prefix: workspaceDir, workspaces: [resolvedPkgDir] }
|
|
13
24
|
: undefined;
|
|
14
25
|
const files = await npmPacklist(tree, packlistOpts);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/fs.packlist",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.4",
|
|
4
4
|
"description": "Get a list of the files to add from a directory into an npm package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"npm-packlist": "10.0.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@pnpm/fs.packlist": "1100.0.
|
|
34
|
+
"@pnpm/fs.packlist": "1100.0.4"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=22.13"
|