create-pkgbld 1.8.1 → 1.8.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,206 @@
1
+ # Changelog
2
+
3
+ ## 1.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 23056c6: update packages, fix lint errors
8
+
9
+ ## 1.8.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 995cf22: fix \_\_dirname not defined
14
+
15
+ ## 1.8.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 5145047: - node 20 is minimal engine now
20
+ - sort exports according to package type so `require` is higher than `import` for type === "module" and lower for type === "commonjs"
21
+ - wait for tsconfig being processed before processing the package
22
+ - do not write declarations if they are not enabled in tsconfig
23
+ - remove 'packageManager' from package.json on prune
24
+ - consume jsconfig.json
25
+ - do not write exports option
26
+ - handle directories.bin in package.json
27
+ - use es modules where possible
28
+
29
+ ## 1.7.3
30
+
31
+ ### Patch Changes
32
+
33
+ - 0091f32: added support for typesVersions
34
+
35
+ ## 1.7.2
36
+
37
+ ### Patch Changes
38
+
39
+ - d942874: use prune
40
+
41
+ ## 1.7.1
42
+
43
+ ### Patch Changes
44
+
45
+ - added prepack to self
46
+
47
+ ## 1.7.0
48
+
49
+ ### Minor Changes
50
+
51
+ - 633fa9f: fixed command line parameters update
52
+ added simplified status per option in main menu
53
+
54
+ ## 1.6.0
55
+
56
+ ### Minor Changes
57
+
58
+ - 0438287: use shared internal library to parse options / package.json
59
+
60
+ ## 1.5.0
61
+
62
+ ### Minor Changes
63
+
64
+ - fdcf99f: extended include-externals to specify individual externals
65
+
66
+ ## 1.4.6
67
+
68
+ ### Patch Changes
69
+
70
+ - 9ce9955: added non-standart unpkg to package fields list
71
+
72
+ ## 1.4.5
73
+
74
+ ### Patch Changes
75
+
76
+ - cc06bb8: make quiet really quiet
77
+ - 5f6883e: add newline to package.json same way as pkgbld does
78
+ - b203bae: stricter package.json parsing
79
+
80
+ ## 1.4.4
81
+
82
+ ### Patch Changes
83
+
84
+ - 5950c96: added more fields for ordering
85
+
86
+ ## 1.4.3
87
+
88
+ ### Patch Changes
89
+
90
+ - 5fac6a1: fix: handle author object
91
+
92
+ ## 1.4.2
93
+
94
+ ### Patch Changes
95
+
96
+ - 54ce107: fix typo
97
+
98
+ ## 1.4.1
99
+
100
+ ### Patch Changes
101
+
102
+ - ea0a7cb: remove redundunt debug console.log()
103
+ - 1e0d5a4: update packages to match new structure
104
+ - fd406cc: added missing `readme` field
105
+
106
+ ## 1.4.0
107
+
108
+ ### Minor Changes
109
+
110
+ - 1cf3eb4: more advanced implementation to allow create / update more complex packages (still some features missing)
111
+
112
+ ## 1.3.0
113
+
114
+ ### Minor Changes
115
+
116
+ - 3daff62: Added a menu to quickly edit package
117
+
118
+ ## 1.2.0
119
+
120
+ ### Minor Changes
121
+
122
+ - b4556f5: simplified package so it provides bare minimum of functionality, fixed issue running in current / another directory, added automatic directory creation
123
+
124
+ ## 1.1.10
125
+
126
+ ### Patch Changes
127
+
128
+ - 86c8d88: updated processing logic of default, module and types fields in package.json
129
+
130
+ ## 1.1.9
131
+
132
+ ### Patch Changes
133
+
134
+ - 74a7f67: fix small mistakes in documentation
135
+
136
+ ## 1.1.8
137
+
138
+ ### Patch Changes
139
+
140
+ - 1e29b8e: Fixed path to executable file in package.json
141
+
142
+ ## 1.1.7
143
+
144
+ ### Patch Changes
145
+
146
+ - fc6c99a: Updated documentation and links
147
+
148
+ ## 1.1.6
149
+
150
+ ### Patch Changes
151
+
152
+ - 03f2a71: Updated dependencies
153
+
154
+ ## 1.1.5
155
+
156
+ ### Patch Changes
157
+
158
+ - 85c2ae6: When creating subpackage, assume that subpackage should be created in subdirectory if package name (cli argument) is not provided
159
+
160
+ ## [1.1.4](https://github.com/kshutkin/create-pkgbld/compare/v1.1.3...v1.1.4) (2022-11-01)
161
+
162
+ ### Bug Fixes
163
+
164
+ - upgrade minimist from 1.2.6 to 1.2.7 ([#3](https://github.com/kshutkin/create-pkgbld/issues/3)) ([c24c8e3](https://github.com/kshutkin/create-pkgbld/commit/c24c8e3a838d409f980acf90142676312b207860))
165
+
166
+ ## [1.1.3](https://github.com/kshutkin/create-pkgbld/compare/v1.1.2...v1.1.3) (2022-03-23)
167
+
168
+ ### Bug Fixes
169
+
170
+ - readme link ([6009ea8](https://github.com/kshutkin/create-pkgbld/commit/6009ea82fe06af9d939c5dd4747f08a94955b3d4))
171
+
172
+ ## [1.1.2](https://github.com/kshutkin/create-pkgbld/compare/v1.1.1...v1.1.2) (2022-03-23)
173
+
174
+ ### Bug Fixes
175
+
176
+ - package.json & package-lock.json to reduce vulnerabilities ([#2](https://github.com/kshutkin/create-pkgbld/issues/2)) ([5d72496](https://github.com/kshutkin/create-pkgbld/commit/5d724967f1e1a4b33d24d197b99e15a7a244e301))
177
+
178
+ ## [1.1.1](https://github.com/kshutkin/create-pkgbld/compare/v1.1.0...v1.1.1) (2022-02-13)
179
+
180
+ ### Bug Fixes
181
+
182
+ - use dirname ([6a5d8bb](https://github.com/kshutkin/create-pkgbld/commit/6a5d8bb23580f1639671e92b922b6df744299dc9))
183
+
184
+ # [1.1.0](https://github.com/kshutkin/create-pkgbld/compare/v1.0.2...v1.1.0) (2022-02-13)
185
+
186
+ ### Features
187
+
188
+ - display version on start ([c7c7051](https://github.com/kshutkin/create-pkgbld/commit/c7c7051bf4e4fe5f037891505de2addddf3b69ac))
189
+
190
+ ## [1.0.2](https://github.com/kshutkin/create-pkgbld/compare/v1.0.1...v1.0.2) (2022-02-08)
191
+
192
+ ### Bug Fixes
193
+
194
+ - do not cache ([ced7de5](https://github.com/kshutkin/create-pkgbld/commit/ced7de5f3e092c4a91afb92368364387725738c9))
195
+
196
+ ## [1.0.1](https://github.com/kshutkin/create-pkgbld/compare/v1.0.0...v1.0.1) (2021-12-28)
197
+
198
+ ### Bug Fixes
199
+
200
+ - undefined exception when run without arguments ([179e44a](https://github.com/kshutkin/create-pkgbld/commit/179e44a87fdfedb46b49053b2d7e245825188003))
201
+
202
+ # 1.0.0 (2021-12-27)
203
+
204
+ ### Features
205
+
206
+ - initial implementation ([#1](https://github.com/kshutkin/create-pkgbld/issues/1)) ([1fa648a](https://github.com/kshutkin/create-pkgbld/commit/1fa648ad2a06ffbb9116efb3501c68cd40de40ce))
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Konstantin Shutkin
3
+ Copyright (c) 2021-present Konstantin Shutkin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,42 @@
1
+ import typescriptEslint from '@typescript-eslint/eslint-plugin';
2
+ import globals from 'globals';
3
+ import tsParser from '@typescript-eslint/parser';
4
+ import path from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+ import js from '@eslint/js';
7
+ import { FlatCompat } from '@eslint/eslintrc';
8
+
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = path.dirname(__filename);
11
+ const compat = new FlatCompat({
12
+ baseDirectory: __dirname,
13
+ recommendedConfig: js.configs.recommended,
14
+ allConfig: js.configs.all
15
+ });
16
+
17
+ export default [
18
+ ...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended'),
19
+ {
20
+ plugins: {
21
+ '@typescript-eslint': typescriptEslint,
22
+ },
23
+
24
+ languageOptions: {
25
+ globals: {
26
+ ...globals.browser,
27
+ },
28
+
29
+ parser: tsParser,
30
+ ecmaVersion: 13,
31
+ sourceType: 'module',
32
+ },
33
+
34
+ rules: {
35
+ '@typescript-eslint/no-non-null-assertion': ['off'],
36
+ indent: ['error', 4],
37
+ 'linebreak-style': ['error', 'unix'],
38
+ quotes: ['error', 'single'],
39
+ semi: ['error', 'always'],
40
+ },
41
+ },
42
+ ];
package/package.json CHANGED
@@ -1,14 +1,11 @@
1
1
  {
2
- "version": "1.8.1",
2
+ "version": "1.8.2",
3
3
  "name": "create-pkgbld",
4
4
  "license": "MIT",
5
5
  "author": "Konstantin Shutkin",
6
6
  "bin": "./index.js",
7
7
  "main": "./dist/index.mjs",
8
8
  "type": "module",
9
- "files": [
10
- "dist"
11
- ],
12
9
  "engines": {
13
10
  "node": ">=20"
14
11
  },
@@ -28,7 +25,7 @@
28
25
  "dependencies": {
29
26
  "string-argv": "0.3.2",
30
27
  "git-user-name": "2.0.0",
31
- "cleye": "1.3.2",
28
+ "cleye": "1.3.4",
32
29
  "parse-git-config": "3.0.0",
33
30
  "prompts": "2.4.2",
34
31
  "kleur": "4.1.5",
@@ -0,0 +1,8 @@
1
+ import childProcess from 'node:child_process';
2
+ import util from 'node:util';
3
+
4
+ export default async function getGitRoot() {
5
+ const exec = util.promisify(childProcess.exec);
6
+ const { stdout } = await exec('git rev-parse --show-toplevel');
7
+ return stdout.trim();
8
+ }