untracked 1.4.16 → 1.4.18
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/README.md +3 -27
- package/bin/index.js +1 -1
- package/package.json +2 -2
- package/src/getProductionDeps.js +3 -1
package/README.md
CHANGED
|
@@ -24,30 +24,6 @@ npx untracked
|
|
|
24
24
|
|
|
25
25
|
The files to ignore will be detected automagically ✨.
|
|
26
26
|
|
|
27
|
-
### Using with Up
|
|
28
|
-
|
|
29
|
-
You need to write the output as [`.upignore`](https://up.docs.apex.sh/#configuration.ignoring_files).
|
|
30
|
-
|
|
31
|
-
For doing that you can run the command directly
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
npx untracked > .upignore
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Also, you can declare it as build [hook](https://up.docs.apex.sh/#configuration.hook_scripts) in your `up.json`:
|
|
38
|
-
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"hooks": {
|
|
42
|
-
"build": [
|
|
43
|
-
"npx untracked > .upignore"
|
|
44
|
-
],
|
|
45
|
-
"clean": [
|
|
46
|
-
"rm -f .upignore"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
27
|
### Using with Heroku
|
|
52
28
|
|
|
53
29
|
You need to write the output as [`.slugignore`](https://devcenter.heroku.com/articles/slug-compiler#ignoring-files-with-slugignore).
|
|
@@ -68,12 +44,12 @@ Also, you can declare it as [`heroku-prebuild`](https://devcenter.heroku.com/art
|
|
|
68
44
|
}
|
|
69
45
|
```
|
|
70
46
|
|
|
71
|
-
### Using with
|
|
47
|
+
### Using with Vercel
|
|
72
48
|
|
|
73
|
-
Just you need to write the output at [`.
|
|
49
|
+
Just you need to write the output at [`.vercelignore`](https://vercel.com/docs/concepts/deployments/vercel-ignore) file.
|
|
74
50
|
|
|
75
51
|
```
|
|
76
|
-
npx untracked > .
|
|
52
|
+
npx untracked > .vercelignore
|
|
77
53
|
```
|
|
78
54
|
|
|
79
55
|
### Using with Yarn
|
package/bin/index.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "untracked",
|
|
3
3
|
"description": "Universal way for ignoring unnecessary common files to fit your bundle",
|
|
4
4
|
"homepage": "https://github.com/Kikobeats/untracked",
|
|
5
|
-
"version": "1.4.
|
|
5
|
+
"version": "1.4.18",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"untracked": "bin/index.js"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@commitlint/cli": "latest",
|
|
45
45
|
"@commitlint/config-conventional": "latest",
|
|
46
|
+
"@ksmithut/prettier-standard": "latest",
|
|
46
47
|
"ci-publish": "latest",
|
|
47
48
|
"conventional-github-releaser": "latest",
|
|
48
49
|
"finepack": "latest",
|
|
49
50
|
"git-authors-cli": "latest",
|
|
50
51
|
"nano-staged": "latest",
|
|
51
52
|
"npm-check-updates": "latest",
|
|
52
|
-
"prettier-standard": "latest",
|
|
53
53
|
"simple-git-hooks": "latest",
|
|
54
54
|
"standard": "latest",
|
|
55
55
|
"standard-markdown": "latest",
|
package/src/getProductionDeps.js
CHANGED
|
@@ -16,7 +16,9 @@ const flattenDeps = (pkg, acc) => {
|
|
|
16
16
|
const readProductionDeps = () => {
|
|
17
17
|
let output
|
|
18
18
|
try {
|
|
19
|
-
output = execSync('npm ls --prod --all --json 2
|
|
19
|
+
output = execSync('npm ls --prod --all --json 2> /dev/null', {
|
|
20
|
+
maxBuffer: 1024 * 1024 * 200
|
|
21
|
+
})
|
|
20
22
|
} catch (err) {
|
|
21
23
|
output = err.stdout
|
|
22
24
|
}
|