Skip to content

Commit 7020450

Browse files
committed
Merge branch 'dev-npm-packlist'
2 parents f24b3d2 + 1e6dadb commit 7020450

File tree

9 files changed

+131
-127
lines changed

9 files changed

+131
-127
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ package.json
5050
"modules_dir": "node_modules",
5151
"install_args": "", // extra arguments for the internal npm/yarn/pnpm install command (example: "--legacy-peer-deps")
5252
"types": ["dependencies"], // dependency types you want to handle with `install-local-dependencies` (these packages will also get installed, but in the regular way) (defaults to ["dependencies", "devDependencies"])
53-
"ignored_files": ["**/an_ignored_file.ext"], // files not to include to the installed package (defaults to ["package.json", "node_modules"])
5453
"ignored_packages": [], // list of local packages you don't want to handle with `install-local-dependencies` (these packages will also get installed, but in the regular way)
5554
}
5655
```

bin/install.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ async function install() {
1515
manager,
1616
install_args,
1717
types,
18-
ignored_files,
1918
ignored_packages,
2019
} = await getConfig();
2120

2221
const { original_package_json, mocked_dependencies, packed_dependencies } = await prepare_dependencies({
2322
types,
2423
cwd,
2524
temp_path,
26-
ignored_files,
2725
ignored_packages,
2826
});
2927

bin/watch.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ const { prepare_dependencies, watch_dependencies } = require('../src/project');
55
const { delete_tarball } = require('../src/dependency');
66

77
async function watch() {
8-
const { cwd, temp_path, modules_path, manager, types, ignored_files, ignored_packages } = await getConfig();
8+
const { cwd, temp_path, modules_path, manager, types, ignored_packages } = await getConfig();
99

1010
const { mocked_dependencies, packed_dependencies } = await prepare_dependencies({
1111
types,
1212
cwd,
1313
temp_path,
14-
ignored_files,
1514
ignored_packages,
1615
});
1716

@@ -23,7 +22,7 @@ async function watch() {
2322
return null;
2423
}
2524

26-
await watch_dependencies(packed_dependencies, { cwd, modules_path, ignored_files });
25+
await watch_dependencies(packed_dependencies, { cwd, modules_path });
2726

2827
return packed_dependencies;
2928
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"exec-sh": "^0.4.0",
3333
"find-cache-dir": "^3.3.1",
3434
"fs-extra": "^10.0.0",
35-
"globby": "^11.0.3",
3635
"lodash": "^4.17.21",
36+
"npm-packlist": "^3.0.0",
3737
"pify": "^5.0.0",
3838
"rimraf": "^3.0.2",
3939
"tar": "^6.1.0"

pnpm-lock.yaml

Lines changed: 36 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ async function config() {
1818
manager: 'npm',
1919
install_args: '',
2020
types: ['dependencies', 'devDependencies'],
21-
ignored_files: ['package.json', 'node_modules', '.DS_Store'],
2221
ignored_packages: [],
2322
};
2423

0 commit comments

Comments
 (0)