@ts-type/package-dts 3.0.8 → 3.0.10

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
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.10](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@3.0.9...@ts-type/package-dts@3.0.10) (2026-09-25)
7
+
8
+
9
+
10
+ ### 🛠 Build System
11
+
12
+ * **deps:** 更新開發工具鏈與優化各套件構建配置 ([01690ef](https://github.com/bluelovers/ws-ts-type/commit/01690ef2420ea6389c987eed3585aec3ea227f30))
13
+ * **schema:** update schema ([406dbb5](https://github.com/bluelovers/ws-ts-type/commit/406dbb560f3064d5a9f5b821f4ed8abded85c278))
14
+
15
+
16
+ ### ♻️ Chores
17
+
18
+ * **build:** 將專案腳本從 yarn 遷移至 pnpm ([7e4ef6b](https://github.com/bluelovers/ws-ts-type/commit/7e4ef6b601bdc50a6202ecf0cad90dc91b0902d6))
19
+
20
+
21
+
22
+ ## [3.0.9](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@3.0.8...@ts-type/package-dts@3.0.9) (2026-03-31)
23
+
24
+ **Note:** Version bump only for package @ts-type/package-dts
25
+
26
+
27
+
28
+
29
+
6
30
  ## [3.0.8](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@3.0.7...@ts-type/package-dts@3.0.8) (2026-03-28)
7
31
 
8
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-type/package-dts",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "private": false,
5
5
  "description": "A Typescript type definition for NPM package json",
6
6
  "keywords": [
@@ -48,28 +48,29 @@
48
48
  "test": "test"
49
49
  },
50
50
  "scripts": {
51
- "coverage": "npx nyc npm run test",
51
+ "coverage": "ynpx nyc pnpm run test",
52
52
  "lint": "eslint **/*.ts",
53
- "pretest": "yarn run build",
54
- "test": "yarn run ts:check",
53
+ "pretest": "pnpm run build",
54
+ "test": "echo pnpm run ts:check",
55
55
  "test:jest": "jest --passWithNoTests",
56
56
  "test:jest:coverage": "node --run test:jest -- --coverage",
57
- "test:jest:snapshot": "yarn run test:jest -- -u",
58
- "test:snapshot": "yarn run test",
57
+ "test:jest:snapshot": "pnpm run test:jest -u",
58
+ "test:snapshot": "pnpm run test",
59
59
  "test:tsd": "ynpx tsd",
60
60
  "posttest": "git commit -m \"build(schema): update schema\" ./types ./schema & echo posttest",
61
- "build": "yarn run update:schema",
62
- "preversion": "yarn run test",
61
+ "build": "pnpm run update:schema",
62
+ "preversion": "pnpm run test",
63
63
  "prepublishOnly": "echo prepublishOnly",
64
64
  "ncu": "yarn-tool ncu -u",
65
65
  "sort-package-json": "yarn-tool sort",
66
66
  "ts:check": "tsc --noEmit -p tsconfig.check.json",
67
67
  "tsc:showConfig": "ynpx get-current-tsconfig -p",
68
- "update:schema": "ts-node ./script/index"
68
+ "update:schema": "tsx ./script/index"
69
69
  },
70
70
  "dependencies": {
71
- "@types/semver": "^7.7.1",
72
- "ts-type": "^3.0.12"
71
+ "@types/semver": "^7.8.0",
72
+ "ts-type": "^3.0.14",
73
+ "tslib": "^2.8.1"
73
74
  },
74
75
  "devDependencies": {
75
76
  "@types/json-schema": "^7.0.15",
@@ -78,7 +79,7 @@
78
79
  "publishConfig": {
79
80
  "access": "public"
80
81
  },
81
- "gitHead": "68144dcde64f5288df56b29573071d1583bc7087",
82
+ "gitHead": "673857cff12964d50e2da0224bd21fcf06c7744b",
82
83
  "sharedDependencies": {
83
84
  "eslint-config-bluelovers": "latest"
84
85
  }
@@ -336,6 +336,33 @@
336
336
  "description": "What action to take if validation fails"
337
337
  }
338
338
  }
339
+ },
340
+ "runtimeEngineDependency": {
341
+ "description": "Specifies a supported JavaScript runtime.",
342
+ "type": "object",
343
+ "required": [
344
+ "name"
345
+ ],
346
+ "properties": {
347
+ "name": {
348
+ "type": "string",
349
+ "description": "The runtime name"
350
+ },
351
+ "version": {
352
+ "type": "string",
353
+ "description": "The version range for the runtime"
354
+ },
355
+ "onFail": {
356
+ "type": "string",
357
+ "enum": [
358
+ "ignore",
359
+ "warn",
360
+ "error",
361
+ "download"
362
+ ],
363
+ "description": "What action to take if runtime validation fails"
364
+ }
365
+ }
339
366
  }
340
367
  },
341
368
  "type": "object",
@@ -350,8 +377,7 @@
350
377
  "description": "The name of the package.",
351
378
  "type": "string",
352
379
  "maxLength": 214,
353
- "minLength": 1,
354
- "pattern": "^(?:(?:@(?:[a-z0-9-*~][a-z0-9-*._~]*)?/[a-z0-9-._~])|[a-z0-9-~])[a-z0-9-._~]*$"
380
+ "minLength": 1
355
381
  },
356
382
  "version": {
357
383
  "description": "Version must be parsable by node-semver, which is bundled with npm as a dependency.",
@@ -773,7 +799,7 @@
773
799
  ]
774
800
  },
775
801
  "bundledDependencies": {
776
- "description": "DEPRECATED: This field is honored, but \"bundleDependencies\" is the correct field name.",
802
+ "description": "DEPRECATED: This field is honored, but \"bundleDependencies\" is the correct field name. Ignored if \"bundleDependencies\" is also present.",
777
803
  "oneOf": [
778
804
  {
779
805
  "type": "array",
@@ -797,13 +823,34 @@
797
823
  "packageManager": {
798
824
  "description": "Defines which package manager is expected to be used when working on the current project. This field is currently experimental and needs to be opted-in; see https://nodejs.org/api/corepack.html",
799
825
  "type": "string",
800
- "pattern": "(npm|pnpm|yarn|bun)@\\d+\\.\\d+\\.\\d+(-.+)?"
826
+ "oneOf": [
827
+ {
828
+ "pattern": "(npm|pnpm|yarn|bun|aube|nub|utoo)@\\d+\\.\\d+\\.\\d+(-.+)?"
829
+ },
830
+ {
831
+ "const": "bun"
832
+ }
833
+ ]
801
834
  },
802
835
  "engines": {
803
836
  "type": "object",
804
837
  "properties": {
805
838
  "node": {
806
839
  "type": "string"
840
+ },
841
+ "runtime": {
842
+ "oneOf": [
843
+ {
844
+ "$ref": "#/definitions/runtimeEngineDependency"
845
+ },
846
+ {
847
+ "type": "array",
848
+ "items": {
849
+ "$ref": "#/definitions/runtimeEngineDependency"
850
+ }
851
+ }
852
+ ],
853
+ "description": "Specifies which JavaScript runtimes (like Node.js, Deno, Bun) are supported. Values should use WinterCG Runtime Keys (see https://runtime-keys.proposal.wintercg.org/)."
807
854
  }
808
855
  },
809
856
  "additionalProperties": {
@@ -937,9 +984,11 @@
937
984
  ]
938
985
  },
939
986
  "publishConfig": {
987
+ "description": "Values applied at publish time. npm: publish-time config values (tag, registry, access, provenance), see https://docs.npmjs.com/cli/v12/configuring-npm/package-json#publishconfig. pnpm: also overrides manifest fields (main, exports, types, etc.) before packing, plus pnpm-specific fields (directory, linkDirectory, executableFiles), see https://pnpm.io/package_json#publishconfig.",
940
988
  "type": "object",
941
989
  "properties": {
942
990
  "access": {
991
+ "description": "Access level for scoped packages at publish time (defaults to \"restricted\"). Supported by npm, honored by pnpm.",
943
992
  "type": "string",
944
993
  "enum": [
945
994
  "public",
@@ -947,14 +996,32 @@
947
996
  ]
948
997
  },
949
998
  "tag": {
999
+ "description": "Distribution tag to publish under (defaults to \"latest\"). Supported by npm, honored by pnpm.",
950
1000
  "type": "string"
951
1001
  },
952
1002
  "registry": {
1003
+ "description": "Registry to publish the package to. Supported by npm, honored by pnpm.",
953
1004
  "type": "string",
954
1005
  "format": "uri"
955
1006
  },
956
1007
  "provenance": {
1008
+ "description": "npm only: generate and publish a provenance attestation (requires a supported CI provider).",
1009
+ "type": "boolean"
1010
+ },
1011
+ "directory": {
1012
+ "description": "pnpm only: subdirectory (relative to this package.json) to publish from; it must contain its own package.json.",
1013
+ "type": "string"
1014
+ },
1015
+ "linkDirectory": {
1016
+ "description": "pnpm only: symlink the project from publishConfig.directory during local development (default: true).",
957
1017
  "type": "boolean"
1018
+ },
1019
+ "executableFiles": {
1020
+ "description": "pnpm only: additional files to mark executable (+x) in the package archive.",
1021
+ "type": "array",
1022
+ "items": {
1023
+ "type": "string"
1024
+ }
958
1025
  }
959
1026
  },
960
1027
  "additionalProperties": true
@@ -1030,22 +1097,31 @@
1030
1097
  "$ref": "#"
1031
1098
  },
1032
1099
  "eslintConfig": {
1033
- "$ref": "https://json.schemastore.org/eslintrc.json"
1100
+ "$ref": "eslintrc.json"
1034
1101
  },
1035
1102
  "prettier": {
1036
- "$ref": "https://json.schemastore.org/prettierrc.json"
1103
+ "$ref": "https://www.schemastore.org/prettierrc.json"
1037
1104
  },
1038
1105
  "stylelint": {
1039
- "$ref": "https://json.schemastore.org/stylelintrc.json"
1106
+ "$ref": "stylelintrc.json"
1040
1107
  },
1041
1108
  "ava": {
1042
- "$ref": "https://json.schemastore.org/ava.json"
1109
+ "$ref": "ava.json"
1043
1110
  },
1044
1111
  "release": {
1045
- "$ref": "https://json.schemastore.org/semantic-release.json"
1112
+ "$ref": "semantic-release.json"
1046
1113
  },
1047
1114
  "jscpd": {
1048
- "$ref": "https://json.schemastore.org/jscpd.json"
1115
+ "$ref": "jscpd.json"
1116
+ },
1117
+ "madge": {
1118
+ "$ref": "madge.json"
1119
+ },
1120
+ "nodemonConfig": {
1121
+ "$ref": "nodemon.json"
1122
+ },
1123
+ "quikrun": {
1124
+ "$ref": "https://www.schemastore.org/quikrun.json"
1049
1125
  },
1050
1126
  "pnpm": {
1051
1127
  "description": "Defines pnpm specific configuration.",
@@ -1270,40 +1346,29 @@
1270
1346
  }
1271
1347
  },
1272
1348
  "additionalProperties": false
1273
- }
1274
- },
1275
- "anyOf": [
1276
- {
1277
- "type": "object",
1278
- "not": {
1279
- "required": [
1280
- "bundledDependencies",
1281
- "bundleDependencies"
1282
- ]
1283
- }
1284
1349
  },
1285
- {
1350
+ "allowScripts": {
1351
+ "description": "Records which dependencies are permitted to run install scripts (preinstall, install, postinstall, and prepare for non-registry sources). Maintained via the \"npm approve-scripts\" command, which enforces a default-deny policy: install scripts for any dependency without a matching entry are silently skipped. Keys are package identifiers — either name-only (e.g. \"pkg\") or pinned with a version (e.g. \"pkg@1.2.3\"); by default entries are pinned so approval is version-specific. A value of true allows the dependency's install scripts to run, while false explicitly denies them (existing false entries are never silently overridden).",
1286
1352
  "type": "object",
1287
- "not": {
1288
- "required": [
1289
- "bundleDependencies"
1290
- ]
1291
- },
1292
- "required": [
1293
- "bundledDependencies"
1294
- ]
1353
+ "additionalProperties": {
1354
+ "type": "boolean"
1355
+ }
1295
1356
  },
1296
- {
1297
- "type": "object",
1298
- "not": {
1299
- "required": [
1300
- "bundledDependencies"
1301
- ]
1302
- },
1303
- "required": [
1304
- "bundleDependencies"
1357
+ "sideEffects": {
1358
+ "description": "Provides hints to the Webpack compiler, denoting which files in your project are \"pure\" and therefore safe to prune if unused.",
1359
+ "oneOf": [
1360
+ {
1361
+ "type": "boolean"
1362
+ },
1363
+ {
1364
+ "type": "array",
1365
+ "items": {
1366
+ "type": "string"
1367
+ },
1368
+ "uniqueItems": true
1369
+ }
1305
1370
  ]
1306
1371
  }
1307
- ],
1372
+ },
1308
1373
  "$id": "https://json.schemastore.org/package.json"
1309
1374
  }