create-pkgbld 1.4.0 → 1.4.1
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.cjs +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +15 -15
package/dist/index.cjs
CHANGED
|
@@ -122,6 +122,7 @@ function updatePackage(pkg, options) {
|
|
|
122
122
|
'repository',
|
|
123
123
|
'bugs',
|
|
124
124
|
'homepage',
|
|
125
|
+
'readme',
|
|
125
126
|
'keywords',
|
|
126
127
|
'scripts',
|
|
127
128
|
'dependencies',
|
|
@@ -145,7 +146,6 @@ function updatePackage(pkg, options) {
|
|
|
145
146
|
function treatKey(key) {
|
|
146
147
|
if (key === 'scripts') {
|
|
147
148
|
({ ...pkg.pkg.scripts });
|
|
148
|
-
console.log(options);
|
|
149
149
|
getScriptValue(options.pkgbld);
|
|
150
150
|
}
|
|
151
151
|
return options[key] ?? pkg.pkg[key];
|
|
@@ -474,6 +474,10 @@ function getBasicOptions(packageName, pkg) {
|
|
|
474
474
|
title: 'Author',
|
|
475
475
|
field: 'author',
|
|
476
476
|
initialValue: chooseValue(pkg.pkg.author, userName() ?? '')
|
|
477
|
+
}, {
|
|
478
|
+
title: 'Readme',
|
|
479
|
+
field: 'readme',
|
|
480
|
+
initialValue: chooseValue(pkg.pkg.readme, 'README.md')
|
|
477
481
|
}],
|
|
478
482
|
mutateInnerObject: false
|
|
479
483
|
}];
|
package/dist/index.mjs
CHANGED
|
@@ -119,6 +119,7 @@ function updatePackage(pkg, options) {
|
|
|
119
119
|
'repository',
|
|
120
120
|
'bugs',
|
|
121
121
|
'homepage',
|
|
122
|
+
'readme',
|
|
122
123
|
'keywords',
|
|
123
124
|
'scripts',
|
|
124
125
|
'dependencies',
|
|
@@ -142,7 +143,6 @@ function updatePackage(pkg, options) {
|
|
|
142
143
|
function treatKey(key) {
|
|
143
144
|
if (key === 'scripts') {
|
|
144
145
|
({ ...pkg.pkg.scripts });
|
|
145
|
-
console.log(options);
|
|
146
146
|
getScriptValue(options.pkgbld);
|
|
147
147
|
}
|
|
148
148
|
return options[key] ?? pkg.pkg[key];
|
|
@@ -471,6 +471,10 @@ function getBasicOptions(packageName, pkg) {
|
|
|
471
471
|
title: 'Author',
|
|
472
472
|
field: 'author',
|
|
473
473
|
initialValue: chooseValue(pkg.pkg.author, userName() ?? '')
|
|
474
|
+
}, {
|
|
475
|
+
title: 'Readme',
|
|
476
|
+
field: 'readme',
|
|
477
|
+
initialValue: chooseValue(pkg.pkg.readme, 'README.md')
|
|
474
478
|
}],
|
|
475
479
|
mutateInnerObject: false
|
|
476
480
|
}];
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.4.
|
|
3
|
-
"license": "MIT",
|
|
2
|
+
"version": "1.4.1",
|
|
4
3
|
"name": "create-pkgbld",
|
|
4
|
+
"license": "MIT",
|
|
5
5
|
"author": "Konstantin Shutkin",
|
|
6
6
|
"bin": "./dist/index.cjs",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
7
9
|
"exports": {
|
|
8
10
|
".": {
|
|
9
11
|
"require": "./dist/index.cjs",
|
|
@@ -12,8 +14,6 @@
|
|
|
12
14
|
"./package.json": "./package.json"
|
|
13
15
|
},
|
|
14
16
|
"types": "./dist/index.d.ts",
|
|
15
|
-
"main": "./dist/index.cjs",
|
|
16
|
-
"module": "./dist/index.mjs",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
@@ -22,24 +22,17 @@
|
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/kshutkin/package-build.git"
|
|
26
|
-
|
|
27
|
-
"bugs": {
|
|
28
|
-
"url": "https://github.com/kshutkin/package-build/issues"
|
|
25
|
+
"url": "git+https://github.com/kshutkin/package-build.git",
|
|
26
|
+
"directory": "create-pkgbld"
|
|
29
27
|
},
|
|
28
|
+
"bugs": "https://github.com/kshutkin/package-build/issues",
|
|
30
29
|
"homepage": "https://github.com/kshutkin/package-build/blob/main/create-pkgbld/README.md",
|
|
30
|
+
"readme": "README.md",
|
|
31
31
|
"keywords": [
|
|
32
32
|
"pkgbld",
|
|
33
33
|
"create",
|
|
34
34
|
"init"
|
|
35
35
|
],
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@types/git-user-name": "2.0.1",
|
|
38
|
-
"@types/parse-git-config": "3.0.1",
|
|
39
|
-
"@types/prompts": "2.4.4",
|
|
40
|
-
"@total-typescript/ts-reset": "^0.5.1",
|
|
41
|
-
"pkgbld": "1.17.0"
|
|
42
|
-
},
|
|
43
36
|
"dependencies": {
|
|
44
37
|
"typia": "^5.0.1",
|
|
45
38
|
"string-argv": "^0.3.2",
|
|
@@ -49,6 +42,13 @@
|
|
|
49
42
|
"prompts": "2.4.2",
|
|
50
43
|
"kleur": "4.1.5"
|
|
51
44
|
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/git-user-name": "2.0.1",
|
|
47
|
+
"@types/parse-git-config": "3.0.1",
|
|
48
|
+
"@types/prompts": "2.4.4",
|
|
49
|
+
"@total-typescript/ts-reset": "^0.5.1",
|
|
50
|
+
"pkgbld": "1.17.1"
|
|
51
|
+
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "node ../pkgbld/dist/index.js",
|
|
54
54
|
"lint": "eslint ./src"
|