@helsenorge/library-build 27.1.3 → 27.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/files.d.ts.map +1 -1
- package/files.js +6 -1
- package/package.json +4 -4
package/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAeA;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAuC/F"}
|
package/files.js
CHANGED
|
@@ -17,7 +17,7 @@ function createPackageJsonFile(packageName, inputPath, outputPath) {
|
|
|
17
17
|
})
|
|
18
18
|
.then(function (data) { return JSON.parse(data); })
|
|
19
19
|
.then(function (packageData) {
|
|
20
|
-
var author = packageData.author, version = packageData.version, bin = packageData.bin, peerDependencies = packageData.peerDependencies, license = packageData.license, dependencies = packageData.dependencies;
|
|
20
|
+
var author = packageData.author, version = packageData.version, bin = packageData.bin, peerDependencies = packageData.peerDependencies, license = packageData.license, dependencies = packageData.dependencies, publishConfig = packageData.publishConfig;
|
|
21
21
|
var minimalPackage = {
|
|
22
22
|
name: packageName,
|
|
23
23
|
author: author,
|
|
@@ -28,6 +28,11 @@ function createPackageJsonFile(packageName, inputPath, outputPath) {
|
|
|
28
28
|
peerDependencies: peerDependencies,
|
|
29
29
|
dependencies: dependencies,
|
|
30
30
|
};
|
|
31
|
+
if (publishConfig === null || publishConfig === void 0 ? void 0 : publishConfig.access) {
|
|
32
|
+
minimalPackage.publishConfig = {
|
|
33
|
+
access: publishConfig.access,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
31
36
|
return new Promise(function (resolve) {
|
|
32
37
|
var data = JSON.stringify(minimalPackage, null, 2);
|
|
33
38
|
(0, fs_1.writeFile)(outputPath, data, function (err) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helsenorge/library-build",
|
|
3
3
|
"author": "Norsk helsenett SF",
|
|
4
|
-
"version": "27.1.
|
|
4
|
+
"version": "27.1.4",
|
|
5
5
|
"main": "./index.js",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
6
|
"bin": {
|
|
10
7
|
"library-scripts": "./library-scripts.js"
|
|
11
8
|
},
|
|
@@ -42,5 +39,8 @@
|
|
|
42
39
|
"react-dom": "17.0.2",
|
|
43
40
|
"rimraf": "^4.4.0",
|
|
44
41
|
"typescript": "~4.9.5"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
45
|
}
|
|
46
46
|
}
|