@yarn-tool/pkg-entry-util 3.0.27 → 3.0.28
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,21 @@
|
|
|
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.28](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@3.0.27...@yarn-tool/pkg-entry-util@3.0.28) (2026-11-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ✨ Features
|
|
11
|
+
|
|
12
|
+
* **test:** 新增 Playwright 測試支援 ([cffba94](https://github.com/bluelovers/ws-yarn-workspaces/commit/cffba94d62dd933e5ff70cd8b3830459e56f4944))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🛠 Build System
|
|
16
|
+
|
|
17
|
+
* update build ([ef0f46f](https://github.com/bluelovers/ws-yarn-workspaces/commit/ef0f46f1e88ed77365cbf7762f4bfe6d29a510fd))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
## [3.0.27](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@3.0.26...@yarn-tool/pkg-entry-util@3.0.27) (2026-11-16)
|
|
7
22
|
|
|
8
23
|
|
|
@@ -69,6 +69,9 @@ export declare function defaultPkgNotOldExists(): {
|
|
|
69
69
|
"test:jest:coverage": string;
|
|
70
70
|
"test:tsdx": string;
|
|
71
71
|
"test:node:coverage": string;
|
|
72
|
+
"test:playwright": string;
|
|
73
|
+
"test:playwright:headed": string;
|
|
74
|
+
"test:playwright:ui": string;
|
|
72
75
|
"build:dts:bundle": EnumScriptsEntry;
|
|
73
76
|
"build:dts:copy": EnumScriptsEntry;
|
|
74
77
|
"build:dts:tsc:emit": EnumScriptsEntry;
|
|
@@ -76,6 +76,9 @@ function defaultPkgNotOldExists() {
|
|
|
76
76
|
"test:jest:coverage": "node --run test:jest -- --coverage",
|
|
77
77
|
"test:tsdx": "ynpx @bluelovers/tsdx test --passWithNoTests",
|
|
78
78
|
"test:node:coverage": "node --run test:node:bin:coverage -- **/*.node-spec.ts **/*.node-test.ts **/*.spec.ts **/*.test.ts",
|
|
79
|
+
"test:playwright": "playwright test playwright-spec.ts",
|
|
80
|
+
"test:playwright:headed": "node --run test:playwright -- --headed",
|
|
81
|
+
"test:playwright:ui": "node --run test:playwright -- --ui",
|
|
79
82
|
"build:dts:bundle": "ynpx @bluelovers/dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-banner --inline-declare-global & echo build:dts:bundle" /* EnumScriptsEntry.BUILD_DTS_BUNDLE */,
|
|
80
83
|
"build:dts:copy": "copy .\\src\\index.d.ts .\\dist\\index.d.ts & echo build:dts" /* EnumScriptsEntry.BUILD_DTS_COPY */,
|
|
81
84
|
"build:dts:tsc:emit": "tsc --emitDeclarationOnly --declaration --noEmit false" /* EnumScriptsEntry.BUILD_DTS_TSC_EMIT */,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pkg-scripts.js","sourceRoot":"","sources":["pkg-scripts.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAsBH,8CAkBC;AA4BD,
|
|
1
|
+
{"version":3,"file":"pkg-scripts.js","sourceRoot":"","sources":["pkg-scripts.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAsBH,8CAkBC;AA4BD,wDA8BC;AA9FD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,iBAAiB;IAEhC,OAAO;QACN,MAAM,+DAA+B;QACrC,UAAU,EAAE,0BAA0B;QACtC,WAAW,2DAA4B;QACvC,WAAW,8HAA4B;QACvC,UAAU,sFAA2B;QACrC,cAAc,kGAA4B;QAC1C,cAAc,EAAE,gDAAgD;QAChE,eAAe,EAAE,kBAAkB;QAEnC,eAAe,EAAE,uCAAuC;QACxD,wBAAwB,EAAE,6DAA6D;QAEvF,UAAU,EAAE,UAAU;QACtB,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,sBAAsB;IAErC,OAAO;QACN,GAAG,iBAAiB,EAAE;QACtB,YAAY,EAAE,oHAAoH;QAClI,oBAAoB,EAAE,4BAA4B;QAClD,oBAAoB,EAAE,oCAAoC;QAC1D,WAAW,EAAE,8CAA8C;QAE3D,oBAAoB,EAAE,oGAAoG;QAE1H,iBAAiB,EAAE,oCAAoC;QACvD,wBAAwB,EAAE,wCAAwC;QAClE,oBAAoB,EAAE,oCAAoC;QAE1D,kBAAkB,iLAAmC;QACrD,gBAAgB,sGAAiC;QACjD,oBAAoB,oGAAqC;QACzD,eAAe,kGAAgC;QAC/C,YAAY,4FAA6B;QACzC,mBAAmB,EAAE,gCAAgC;QACrD,uCAAuC;QACvC,4DAA4D;QAC5D,0CAA0C;QAC1C,mDAAmD;QACnD,2DAA2D;QAC3D,mBAAmB,EAAE,gBAAgB;QACrC,aAAa,EAAE,sBAAsB;QACrC,yCAAyC;KACzC,CAAA;AACF,CAAC","sourcesContent":["/**\n * 套件腳本預設 / Package Scripts Preset\n *\n * 提供標準套件(非根目錄、非工作區根目錄)的預設 npm scripts\n * Provides default npm scripts for standard packages (non-root, non-workspace-root)\n */\n\nimport { EnumScriptsEntry } from '../../field/scripts';\n\n/**\n * 標準套件預設腳本 / Default scripts for standard packages\n *\n * 適用於一般套件專案的常用測試與建構腳本\n * Common test and build scripts for general package projects\n *\n * @returns 包含標準腳本的物件 / Object containing standard scripts\n *\n * 包含腳本 / Includes scripts:\n * - test: 執行 Jest 測試 / Run Jest tests\n * - coverage: 執行測試並產生覆蓋率報告 / Run tests with coverage\n * - test:jest: Jest 測試命令 / Jest test command\n * - test:snapshot: 更新測試快照 / Update test snapshots\n * - test:jest:snapshot: 更新 Jest 快照 / Update Jest snapshots\n * - test:jest:coverage: Jest 測試含覆蓋率 / Jest test with coverage\n * - test:tsd: 執行 TypeScript 型別檢查 / Run TypeScript type checking\n * - tsc:showConfig: 顯示 TypeScript 設定 / Show TypeScript config\n */\nexport function defaultPkgScripts()\n{\n\treturn {\n\t\t\"test\": EnumScriptsEntry.DEFAULT_TEST,\n\t\t\"coverage\": \"pnpm run test --coverage\",\n\t\t\"test:jest\": EnumScriptsEntry.JEST_TEST,\n\t\t\"test:node\": EnumScriptsEntry.NODE_TEST,\n\t\t\"test:tsc\": EnumScriptsEntry.TSC_TEST,\n\t\t\"test:tsc:sub\": EnumScriptsEntry.TSC_TEST2,\n\t\t\"test:tsc:all\": \"node --run test:tsc && node --run test:tsc:sub\",\n\t\t\"test:snapshot\": \"pnpm run test -u\",\n\n\t\t\"test:node:bin\": \"tsx --test --test-update-snapshots --\",\n\t\t\"test:node:bin:coverage\": \"node --run test:node:bin -- --experimental-test-coverage --\",\n\n\t\t\"test:tsd\": \"ynpx tsd\",\n\t\t\"tsc:showConfig\": \"ynpx get-current-tsconfig -p\",\n\t}\n}\n\n/**\n * 新套件預設腳本 / Default scripts for new packages\n *\n * 適用於初始化新套件時的完整腳本集合\n * Complete set of scripts for initializing new packages\n *\n * @returns 包含完整開發腳本的物件 / Object containing complete development scripts\n *\n * 額外包含腳本 / Additional scripts:\n * - test:mocha: Mocha 測試執行 / Mocha test execution\n * - test:tsdx: TSDX 測試 / TSDX testing\n * - build:dts:bundle: 建構型別宣告檔 / Build type declaration files\n * - build:dts:copy: 複製型別宣告檔 / Copy type declaration files\n * - build:dts:tsc:emit: TypeScript 型別輸出 / TypeScript type emit\n * - build:dts:tsc: 完整型別建構 / Complete type build\n * - build:tsdx: TSDX 建構 / TSDX build\n * - build:microbundle: Microbundle 建構 / Microbundle build\n * - lint: ESLint 檢查 / ESLint check\n * - lint:eslint: ESLint 執行 / ESLint execution\n * - review: 完整審查流程 / Complete review process\n * - review:test: 測試審查 / Test review\n * - review:coverage: 覆蓋率審查 / Coverage review\n * - sort-package-json: 排序 package.json / Sort package.json\n * - tsc:default: 預設 TypeScript 編譯 / Default TypeScript compilation\n * - tsc:esm: ESM TypeScript 編譯 / ESM TypeScript compilation\n */\nexport function defaultPkgNotOldExists()\n{\n\treturn {\n\t\t...defaultPkgScripts(),\n\t\t\"test:mocha\": \"ynpx --quiet -p ts-node -p mocha mocha -- --require ts-node/register \\\"!(node_modules)/**/*.{test,spec}.{ts,tsx}\\\"\",\n\t\t\"test:jest:snapshot\": \"node --run test:jest -- -u\",\n\t\t\"test:jest:coverage\": \"node --run test:jest -- --coverage\",\n\t\t\"test:tsdx\": \"ynpx @bluelovers/tsdx test --passWithNoTests\",\n\n\t\t\"test:node:coverage\": \"node --run test:node:bin:coverage -- **/*.node-spec.ts **/*.node-test.ts **/*.spec.ts **/*.test.ts\",\n\n\t\t\"test:playwright\": \"playwright test playwright-spec.ts\",\n\t\t\"test:playwright:headed\": \"node --run test:playwright -- --headed\",\n\t\t\"test:playwright:ui\": \"node --run test:playwright -- --ui\",\n\n\t\t\"build:dts:bundle\": EnumScriptsEntry.BUILD_DTS_BUNDLE,\n\t\t\"build:dts:copy\": EnumScriptsEntry.BUILD_DTS_COPY,\n\t\t\"build:dts:tsc:emit\": EnumScriptsEntry.BUILD_DTS_TSC_EMIT,\n\t\t\"build:dts:tsc\": EnumScriptsEntry.BUILD_DTS_TSC,\n\t\t\"build:tsdx\": EnumScriptsEntry.BUILD_TSDX,\n\t\t\"build:microbundle\": \"ynpx microbundle --target node\",\n\t\t// \"lint\": \"node --run lint:eslint --\",\n\t\t// \"lint:eslint\": \"ynpx eslint --ext .ts,.tsx,.mts,.cts ./\",\n\t\t// \"review\": \"node --run review:coverage\",\n\t\t// \"review:test\": \"yarn run lint && yarn run test\",\n\t\t// \"review:coverage\": \"yarn run lint && yarn run coverage\",\n\t\t\"sort-package-json\": \"yarn-tool sort\",\n\t\t\"tsc:default\": \"tsc -p tsconfig.json\",\n\t\t// \"tsc:esm\": \"tsc -p tsconfig.esm.json\",\n\t}\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/pkg-entry-util",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.28",
|
|
4
4
|
"description": "用於處理 package.json entry 相關欄位的工具庫,包含 bin、exports、publishConfig 欄位的修復與驗證功能,並提供各類套件的預設 npm scripts(工作區根目錄、一般套件、根目錄套件)/ Utility for handling package.json entry fields including bin, exports, publishConfig fix/verification, plus preset npm scripts for workspace root, regular packages, and root packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yarn",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "2a8c9e6427b77617197a2815821e6c10692a8bbd"
|
|
88
88
|
}
|