pkgbld 1.1.0 → 1.1.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.
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -105,8 +105,8 @@ function getOutputPlugins(format, config) {
|
|
|
105
105
|
function getHelpers(pkg) {
|
|
106
106
|
const scopeTest = /(@.+)\/.+$/g.exec(pkg.name);
|
|
107
107
|
let scope = undefined;
|
|
108
|
-
if (scopeTest && scopeTest[
|
|
109
|
-
scope = scopeTest[
|
|
108
|
+
if (scopeTest && scopeTest[1]) {
|
|
109
|
+
scope = scopeTest[1];
|
|
110
110
|
}
|
|
111
111
|
const external = scope != null
|
|
112
112
|
? (id) => id.indexOf('node_modules') >= 0 || id.indexOf(scope) >= 0 || isBuiltinModule__default["default"](id)
|
|
@@ -276,7 +276,7 @@ function processPackage(pkg, config) {
|
|
|
276
276
|
|
|
277
277
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
278
278
|
async function writePackage(pkgPath, pkg) {
|
|
279
|
-
await fs__default["default"].writeFile(pkgPath, JSON.stringify(pkg, null, 2));
|
|
279
|
+
await fs__default["default"].writeFile(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
async function cleanupDir(dir) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.1.
|
|
2
|
+
"version": "1.1.4",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "pkgbld",
|
|
5
5
|
"author": {
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@niceties/logger": "1.0.4",
|
|
51
51
|
"is-builtin-module": "3.1.0",
|
|
52
52
|
"lodash": "4.17.21",
|
|
53
|
-
"rollup": "2.
|
|
53
|
+
"rollup": "2.62.0",
|
|
54
54
|
"rollup-plugin-terser": "7.0.2",
|
|
55
55
|
"rollup-plugin-typescript2": "0.31.1",
|
|
56
56
|
"rollup-plugin-preprocess": "0.0.4",
|
|
57
57
|
"@rollup/plugin-commonjs": "21.0.1",
|
|
58
|
-
"@rollup/plugin-node-resolve": "13.
|
|
58
|
+
"@rollup/plugin-node-resolve": "13.1.1",
|
|
59
59
|
"typescript": "4.5.x",
|
|
60
60
|
"minimist": "1.2.5"
|
|
61
61
|
}
|