npm-pkgbuild 11.10.7 → 11.10.9
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/package.json +4 -4
- package/src/extract-from-package.mjs +1 -0
- package/src/npm-pkgbuild-cli.mjs +4 -4
- package/src/utis.mjs +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "11.10.
|
|
3
|
+
"version": "11.10.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@vercel/nft": "^0.23.0",
|
|
47
47
|
"aggregate-async-iterator": "^1.1.16",
|
|
48
48
|
"commander": "^11.0.0",
|
|
49
|
-
"compare-versions": "^6.
|
|
49
|
+
"compare-versions": "^6.1.0",
|
|
50
50
|
"content-entry": "^6.0.0",
|
|
51
51
|
"content-entry-filesystem": "^5.2.13",
|
|
52
52
|
"content-entry-transform": "^1.4.29",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"pacote": "^15.2.0",
|
|
63
63
|
"pkg-dir": "^7.0.0",
|
|
64
64
|
"tar-stream": "^3.1.6",
|
|
65
|
-
"uti": "^7.
|
|
65
|
+
"uti": "^7.6.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@types/node": "^20.4.
|
|
68
|
+
"@types/node": "^20.4.9",
|
|
69
69
|
"ava": "^5.3.1",
|
|
70
70
|
"c8": "^8.0.1",
|
|
71
71
|
"documentation": "^14.0.2",
|
|
@@ -106,6 +106,7 @@ function* content2Sources(content, dir) {
|
|
|
106
106
|
* - architecture given in a variant definition are used to restrict the set of avaliable architectures
|
|
107
107
|
* @param {Object} options
|
|
108
108
|
* @param {string} [options.dir] where to look for package.json
|
|
109
|
+
* @param {boolean} [options.verbose] log
|
|
109
110
|
* @param {Object} env as delared in process.env
|
|
110
111
|
* @returns {AsyncIterator<PackageDefinition>}
|
|
111
112
|
*/
|
package/src/npm-pkgbuild-cli.mjs
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { program } from "commander";
|
|
6
|
-
import {
|
|
7
|
-
createExpressionTransformer
|
|
8
|
-
} from "content-entry-transform";
|
|
6
|
+
import { createExpressionTransformer } from "content-entry-transform";
|
|
9
7
|
import { UTIController } from "uti";
|
|
10
8
|
import { utf8StreamOptions } from "./util.mjs";
|
|
9
|
+
import additionalUTIs from "./utis.mjs";
|
|
11
10
|
import {
|
|
12
11
|
FileContentProvider,
|
|
13
12
|
allInputs,
|
|
@@ -58,6 +57,7 @@ program
|
|
|
58
57
|
.action(async options => {
|
|
59
58
|
try {
|
|
60
59
|
const uc = new UTIController();
|
|
60
|
+
uc.register(additionalUTIs);
|
|
61
61
|
|
|
62
62
|
options.publish = preparePublish(options.publish, process.env);
|
|
63
63
|
|
|
@@ -118,7 +118,7 @@ program
|
|
|
118
118
|
const o = new outputFactory(properties);
|
|
119
119
|
const transformer = [
|
|
120
120
|
createExpressionTransformer(
|
|
121
|
-
|
|
121
|
+
entry => uc.fileNameConformsTo(entry.name, "public.text"),
|
|
122
122
|
properties
|
|
123
123
|
)
|
|
124
124
|
];
|