pkgprn 0.2.0 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # pkgprn
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 5182c31: added types
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "pkgprn",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "author": "Konstantin Shutkin",
6
6
  "bin": "./index.js",
7
7
  "type": "module",
8
+ "types": "./types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./types/index.d.ts",
12
+ "default": "./prune.js"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
8
16
  "description": "Prune package.json before publish",
9
17
  "homepage": "https://github.com/kshutkin/package-prune#readme",
10
18
  "bugs": {
package/prune.js CHANGED
@@ -34,7 +34,7 @@ const alwaysIgnoredPatterns = [
34
34
  const hardIgnored = new Set(['.git', '.npmrc', 'node_modules', 'package-lock.json', 'pnpm-lock.yaml', 'yarn.lock', 'bun.lockb']);
35
35
 
36
36
  /**
37
- * @typedef {ReturnType<typeof import('@niceties/logger').createLogger>} Logger
37
+ * @typedef {import('@niceties/logger').Logger} Logger
38
38
  */
39
39
 
40
40
  /**
@@ -45,9 +45,9 @@ const hardIgnored = new Set(['.git', '.npmrc', 'node_modules', 'package-lock.jso
45
45
  * @property {string} [main]
46
46
  * @property {string|Object.<string, string>} [bin]
47
47
  * @property {Array<string>} [files]
48
- * @property {Object} [directories]
49
- * @property {Object} [exports]
50
- * @property {Object} [typesVersions]
48
+ * @property {Record<string, unknown>} [directories]
49
+ * @property {Record<string, unknown>} [exports]
50
+ * @property {Record<string, unknown>} [typesVersions]
51
51
  */
52
52
 
53
53
  /**
package/tsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "allowJs": true,
7
+ "checkJs": true,
8
+ "strict": true,
9
+ "noEmit": true,
10
+ "declaration": true,
11
+ "declarationMap": true,
12
+ "esModuleInterop": true,
13
+ "skipLibCheck": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "resolveJsonModule": true
16
+ }
17
+ }
package/jsconfig.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "checkJs": true,
4
- "target": "ESNext",
5
- "module": "NodeNext",
6
- "moduleResolution": "NodeNext",
7
- "allowSyntheticDefaultImports": true,
8
- "esModuleInterop": true,
9
- "resolveJsonModule": true,
10
- "strict": true
11
- }
12
- }