npm-pkgbuild 8.3.13 → 8.3.14
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 +2 -2
- package/src/npm-pkgbuild-cli.mjs +2 -10
- package/src/util.mjs +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tar-stream": "^2.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"ava": "^4.
|
|
63
|
+
"ava": "^4.2.0",
|
|
64
64
|
"c8": "^7.11.0",
|
|
65
65
|
"documentation": "^13.2.5",
|
|
66
66
|
"semantic-release": "^19.0.2",
|
package/src/npm-pkgbuild-cli.mjs
CHANGED
|
@@ -88,15 +88,6 @@ program
|
|
|
88
88
|
|
|
89
89
|
Object.assign(properties, { type: outputFactory.name }, options.define);
|
|
90
90
|
|
|
91
|
-
for (const [k, v] of Object.entries(properties)) {
|
|
92
|
-
if (typeof v === "string") {
|
|
93
|
-
properties[k] = v.replace(
|
|
94
|
-
/\$\{([^\}]+)\}/m,
|
|
95
|
-
(m, k) => properties[k]
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
91
|
sources.push(
|
|
101
92
|
...[...options.content, ...options.meta]
|
|
102
93
|
.filter(x => x)
|
|
@@ -121,7 +112,8 @@ program
|
|
|
121
112
|
".service",
|
|
122
113
|
".socket"
|
|
123
114
|
]),
|
|
124
|
-
properties
|
|
115
|
+
context.expand(properties)
|
|
116
|
+
//properties
|
|
125
117
|
)
|
|
126
118
|
];
|
|
127
119
|
|
package/src/util.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { createWriteStream } from "fs";
|
|
|
6
6
|
export const utf8StreamOptions = { encoding: "utf8" };
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* What is the node name in the package eco-system
|
|
10
10
|
*/
|
|
11
11
|
export const packageNameMapping = {
|
|
12
12
|
node: "nodejs"
|
|
@@ -32,7 +32,7 @@ export function decodePassword(password) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Extract shell functions from a given text
|
|
35
|
+
* Extract shell functions from a given text.
|
|
36
36
|
* @param {AsyncIterator<string>} source
|
|
37
37
|
* @return {AsyncIterator<FunctionDecl>}
|
|
38
38
|
*/
|