npm-pkgbuild 8.0.1 → 8.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.
Files changed (2) hide show
  1. package/README.md +23 -4
  2. package/package.json +8 -6
package/README.md CHANGED
@@ -11,18 +11,37 @@
11
11
 
12
12
  ## npm-pkgbuild
13
13
 
14
- create ArchLinux, RPM and Debian packages from npm packages.
14
+ Create ArchLinux, RPM and Debian packages from npm packages.
15
15
 
16
16
  # usage
17
17
 
18
18
  In a package directory execute
19
19
 
20
20
  ```shell
21
- npm-pkgbuild --pkg
21
+ npm-pkgbuild --rpm --debian --arch --content build
22
22
  ```
23
23
 
24
- This will create a PKGBUILD file and execute it
25
- The resulting pkg will contain the package dist content and all production dependencies
24
+ This will create a arch, rpm and a debian package of the build dir.
25
+
26
+ You can specify the package content in package.json.
27
+
28
+ ```json
29
+ {
30
+ "pkg": {
31
+ "content": {
32
+ "/some/location" : { "base": "build" },
33
+ "/etc/myconfig.json" : "sample-config.json"
34
+ },
35
+ "hooks" : "pkg/hooks",
36
+ "output": {
37
+ "debian" : {},
38
+ "rpm" : {},
39
+ "arch" : {}
40
+ },
41
+ "dependencies": { "nginx" : ">=1.12" }
42
+ }
43
+ }
44
+ ```
26
45
 
27
46
  # API
28
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "8.0.1",
3
+ "version": "8.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,10 +10,12 @@
10
10
  },
11
11
  "description": "create ArchLinux, RPM and Debian packages from npm packages",
12
12
  "keywords": [
13
+ "package",
13
14
  "ArchLinux",
14
15
  "arch-linux",
15
16
  "aur",
16
17
  "debian",
18
+ "deb",
17
19
  "pacman",
18
20
  "pkgbuild",
19
21
  "rpm",
@@ -38,10 +40,10 @@
38
40
  "lint:docs": "documentation lint ./src/**/*.mjs"
39
41
  },
40
42
  "dependencies": {
41
- "@npmcli/arborist": "^5.0.2",
43
+ "@npmcli/arborist": "^5.0.3",
42
44
  "aggregate-async-iterator": "^1.1.9",
43
- "commander": "^9.0.0",
44
- "content-entry": "^4.1.7",
45
+ "commander": "^9.1.0",
46
+ "content-entry": "^4.1.8",
45
47
  "content-entry-filesystem": "^4.0.7",
46
48
  "content-entry-transform": "^1.3.13",
47
49
  "execa": "^6.1.0",
@@ -52,7 +54,7 @@
52
54
  "node-fetch": "^3.2.3",
53
55
  "npm-package-walker": "^5.0.5",
54
56
  "npm-packlist": "^4.0.0",
55
- "pacote": "^13.0.4",
57
+ "pacote": "^13.0.5",
56
58
  "pkg-dir": "^6.0.1",
57
59
  "tar-stream": "^2.2.0"
58
60
  },
@@ -64,7 +66,7 @@
64
66
  "stream-buffers": "^3.0.2"
65
67
  },
66
68
  "engines": {
67
- "node": ">=16.13.0"
69
+ "node": ">=16.14.2"
68
70
  },
69
71
  "repository": {
70
72
  "type": "git",