From 2ca73ecda0a0c257b299d2692810a6706c85fd9a Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 7 Aug 2025 17:10:13 +0200 Subject: [PATCH 01/17] chore: add pkg new job --- .github/workflows/pr-pkg-pr-new.yml | 23 ++ package-lock.json | 497 ++++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 521 insertions(+) create mode 100644 .github/workflows/pr-pkg-pr-new.yml diff --git a/.github/workflows/pr-pkg-pr-new.yml b/.github/workflows/pr-pkg-pr-new.yml new file mode 100644 index 000000000..7b781d147 --- /dev/null +++ b/.github/workflows/pr-pkg-pr-new.yml @@ -0,0 +1,23 @@ +name: Publish Any Commit +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Build + run: nx run-many --target=build --all --parallel --maxParallel=3 + + - run: npm dlx pkg-pr-new publish diff --git a/package-lock.json b/package-lock.json index 364f46e21..fc7811dba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -92,6 +92,7 @@ "memfs": "^4.5.0", "minimatch": "^10.0.1", "moment": "^2.30.1", + "pkg-pr-new": "^0.0.54", "prettier": "^3.4.1", "react": "18.3.1", "react-dom": "18.3.1", @@ -4098,6 +4099,22 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@jsdevtools/ez-spawn": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@jsdevtools/ez-spawn/-/ez-spawn-3.0.4.tgz", + "integrity": "sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-me-maybe": "^1.0.1", + "cross-spawn": "^7.0.3", + "string-argv": "^0.3.1", + "type-detect": "^4.0.8" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@jsonjoy.com/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jsonjoy.com/base64/-/base64-1.1.2.tgz", @@ -5556,6 +5573,278 @@ "node": ">=8" } }, + "node_modules/@octokit/action": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@octokit/action/-/action-6.1.0.tgz", + "integrity": "sha512-lo+nHx8kAV86bxvOVOI3vFjX3gXPd/L7guAUbvs3pUvnR2KC+R7yjBkA1uACt4gYhs4LcWP3AXSGQzsbeN2XXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/auth-action": "^4.0.0", + "@octokit/core": "^5.0.0", + "@octokit/plugin-paginate-rest": "^9.0.0", + "@octokit/plugin-rest-endpoint-methods": "^10.0.0", + "@octokit/types": "^12.0.0", + "undici": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/auth-action": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-action/-/auth-action-4.1.0.tgz", + "integrity": "sha512-m+3t7K46IYyMk7Bl6/lF4Rv09GqDZjYmNg8IWycJ2Fa3YE3DE7vQcV6G2hUPmR9NDqenefNJwVtlisMjzymPiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/auth-token": "^4.0.0", + "@octokit/types": "^13.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/auth-action/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/auth-action/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/auth-token": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", + "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.2.tgz", + "integrity": "sha512-/g2d4sW9nUDJOMz3mabVQvOGhVa4e/BN/Um7yca9Bb2XTzPPnfTWHWQg+IsEYO7M3Vx+EXvaM/I2pJWIMun1bg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/auth-token": "^4.0.0", + "@octokit/graphql": "^7.1.0", + "@octokit/request": "^8.4.1", + "@octokit/request-error": "^5.1.1", + "@octokit/types": "^13.0.0", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/core/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/endpoint": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.6.tgz", + "integrity": "sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/endpoint/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/graphql": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.1.tgz", + "integrity": "sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/request": "^8.4.1", + "@octokit/types": "^13.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/graphql/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.2.tgz", + "integrity": "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^12.6.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz", + "integrity": "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^12.6.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@octokit/request": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.1.tgz", + "integrity": "sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^9.0.6", + "@octokit/request-error": "^5.1.1", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/request-error": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.1.tgz", + "integrity": "sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^13.1.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/request-error/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/request/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/request/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, "node_modules/@paulirish/trace_engine": { "version": "0.0.32", "resolved": "https://registry.npmjs.org/@paulirish/trace_engine/-/trace_engine-0.0.32.tgz", @@ -10765,6 +11054,13 @@ "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==", "dev": true }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", + "dev": true, + "license": "Apache-2.0" + }, "node_modules/benchmark": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/benchmark/-/benchmark-2.1.4.tgz", @@ -11442,6 +11738,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/call-me-maybe": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", + "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", + "dev": true, + "license": "MIT" + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -13200,6 +13503,16 @@ "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", "dev": true }, + "node_modules/decode-uri-component": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.4.1.tgz", + "integrity": "sha512-+8VxcR21HhTy8nOt6jf20w0c9CADrw1O8d+VZ/YzzCt4bJ3uBjw+D1q2osAB8RnpwwaeYBxy0HyKQxD5JBMuuQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.16" + } + }, "node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", @@ -13372,6 +13685,13 @@ "node": ">= 0.8" } }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "dev": true, + "license": "ISC" + }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -15972,6 +16292,19 @@ "node": ">=8" } }, + "node_modules/filter-obj": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-5.1.0.tgz", + "integrity": "sha512-qWeTREPoT7I0bifpPUXtxkZJ1XJzxWtfoWWkdVGqa+eCr3SHW/Ocp89o8vLvbUuQnadybJpjOKu4V+RwO6sGng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/finalhandler": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", @@ -18096,6 +18429,19 @@ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true }, + "node_modules/isbinaryfile": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.4.tgz", + "integrity": "sha512-YKBKVkKhty7s8rxddb40oOkuP0NbaeXrQvLin6QMHL7Ypiy2RW9LwOVrVgZRyOrhQlayMd9t+D8yDy8MKFTSDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -23034,6 +23380,25 @@ "nice-napi": "^1.0.2" } }, + "node_modules/pkg-pr-new": { + "version": "0.0.54", + "resolved": "https://registry.npmjs.org/pkg-pr-new/-/pkg-pr-new-0.0.54.tgz", + "integrity": "sha512-NkmmZbe3HrElqWcgvbwTuVm7wzHN+vpz1NFhBNcAKT33Co8YE95IiA/Vq7E+cka6z+qybI2pVYVidT5dhW+jMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jsdevtools/ez-spawn": "^3.0.4", + "@octokit/action": "^6.1.0", + "ignore": "^5.3.1", + "isbinaryfile": "^5.0.2", + "pkg-types": "^1.1.1", + "query-registry": "^3.0.1", + "tinyglobby": "^0.2.9" + }, + "bin": { + "pkg-pr-new": "bin/cli.js" + } + }, "node_modules/pkg-types": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.0.tgz", @@ -23394,6 +23759,75 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/query-registry": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/query-registry/-/query-registry-3.0.1.tgz", + "integrity": "sha512-M9RxRITi2mHMVPU5zysNjctUT8bAPx6ltEXo/ir9+qmiM47Y7f0Ir3+OxUO5OjYAWdicBQRew7RtHtqUXydqlg==", + "dev": true, + "license": "MIT", + "dependencies": { + "query-string": "^9.0.0", + "quick-lru": "^7.0.0", + "url-join": "^5.0.0", + "validate-npm-package-name": "^5.0.1", + "zod": "^3.23.8", + "zod-package-json": "^1.0.3" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/query-registry/node_modules/quick-lru": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-7.0.1.tgz", + "integrity": "sha512-kLjThirJMkWKutUKbZ8ViqFc09tDQhlbQo2MNuVeLWbRauqYP96Sm6nzlQ24F0HFjUNZ4i9+AgldJ9H6DZXi7g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/query-registry/node_modules/url-join": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz", + "integrity": "sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/query-registry/node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/query-string": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-9.2.2.tgz", + "integrity": "sha512-pDSIZJ9sFuOp6VnD+5IkakSVf+rICAuuU88Hcsr6AKL0QtxSIfVuKiVP2oahFI7tk3CRSexwV+Ya6MOoTxzg9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.4.1", + "filter-obj": "^5.1.0", + "split-on-first": "^3.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", @@ -24790,6 +25224,19 @@ "node": ">=8.0" } }, + "node_modules/split-on-first": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-3.0.0.tgz", + "integrity": "sha512-qxQJTx2ryR0Dw0ITYyekNQWpz6f8dGd7vffGNflQQ3Iqj9NJ6qiZ7ELpZsJ/QBhIVAiDfXdag3+Gp8RvWa62AA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/split2": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", @@ -24964,6 +25411,16 @@ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.6.19" + } + }, "node_modules/string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", @@ -26593,6 +27050,16 @@ "through": "^2.3.8" } }, + "node_modules/undici": { + "version": "6.21.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz", + "integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, "node_modules/undici-types": { "version": "6.20.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", @@ -26674,6 +27141,13 @@ "node": ">=8" } }, + "node_modules/universal-user-agent": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", + "dev": true, + "license": "ISC" + }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -28405,6 +28879,29 @@ "url": "https://github.com/sponsors/colinhacks" } }, + "node_modules/zod-package-json": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/zod-package-json/-/zod-package-json-1.2.0.tgz", + "integrity": "sha512-tamtgPM3MkP+obfO2dLr/G+nYoYkpJKmuHdYEy6IXRKfLybruoJ5NUj0lM0LxwOpC9PpoGLbll1ecoeyj43Wsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "zod": "^3.25.64" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/zod-package-json/node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, "node_modules/zod-validation-error": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.5.3.tgz", diff --git a/package.json b/package.json index 7a931e94e..738f04ea6 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,7 @@ "memfs": "^4.5.0", "minimatch": "^10.0.1", "moment": "^2.30.1", + "pkg-pr-new": "^0.0.54", "prettier": "^3.4.1", "react": "18.3.1", "react-dom": "18.3.1", From f66fa68ea089c12939e4e7efe133df06755b4fd8 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 00:50:06 +0200 Subject: [PATCH 02/17] chore: wip pkg new 1 --- .github/workflows/pr-pkg-pr-new.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr-pkg-pr-new.yml b/.github/workflows/pr-pkg-pr-new.yml index 7b781d147..0fc49076a 100644 --- a/.github/workflows/pr-pkg-pr-new.yml +++ b/.github/workflows/pr-pkg-pr-new.yml @@ -6,18 +6,20 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout repository uses: actions/checkout@v4 - - - run: corepack enable - - uses: actions/setup-node@v4 with: - cache: 'npm' - + fetch-depth: 0 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + - name: Set base and head for Nx affected commands + uses: nrwl/nx-set-shas@v4 - name: Install dependencies - run: npm install - - - name: Build - run: nx run-many --target=build --all --parallel --maxParallel=3 - - - run: npm dlx pkg-pr-new publish + run: npm ci + - name: Build affected projects + run: npx nx run-many --target=build --parallel=3 --with-deps + - name: Release packages + run: npx pkg-pr-new publish From 54857b10c04b9bfc84ace0e57fd9f2d52f94e530 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 00:52:12 +0200 Subject: [PATCH 03/17] chore: wip pkg new 2 --- .github/workflows/pr-pkg-pr-new.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-pkg-pr-new.yml b/.github/workflows/pr-pkg-pr-new.yml index 0fc49076a..107436aac 100644 --- a/.github/workflows/pr-pkg-pr-new.yml +++ b/.github/workflows/pr-pkg-pr-new.yml @@ -19,7 +19,7 @@ jobs: uses: nrwl/nx-set-shas@v4 - name: Install dependencies run: npm ci - - name: Build affected projects + - name: Build affected packages run: npx nx run-many --target=build --parallel=3 --with-deps - name: Release packages - run: npx pkg-pr-new publish + run: npx pkg-pr-new publish 'packages/models' From f441b9ad6c762306baeea84a0fbf15f36bf31739 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:07:01 +0200 Subject: [PATCH 04/17] chore: adjust models targets and workspace default targets --- nx.json | 22 +++++++++++++++++---- package-lock.json | 11 +++++++++++ package.json | 1 + packages/models/package.json | 4 ++++ packages/models/project.json | 38 ++++++++++++------------------------ 5 files changed, 47 insertions(+), 29 deletions(-) diff --git a/nx.json b/nx.json index 251b8f366..a6f3b45a0 100644 --- a/nx.json +++ b/nx.json @@ -4,14 +4,28 @@ "build": { "dependsOn": ["^build"], "inputs": ["production", "^production"], - "cache": true + "cache": true, + "executor": "@nx/js:tsc", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "{projectRoot}/dist", + "main": "{projectRoot}/src/index.ts", + "tsConfig": "{projectRoot}/tsconfig.lib.json", + "assets": ["{projectRoot}/*.md"] + } }, "lint": { "inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"], + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "cache": true, "options": { - "maxWarnings": 0 - }, - "cache": true + "maxWarnings": 0, + "lintFilePatterns": [ + "{projectRoot}/**/*.ts", + "{projectRoot}/package.json" + ] + } }, "e2e": { "dependsOn": ["^build"] diff --git a/package-lock.json b/package-lock.json index fc7811dba..e72f17ec0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "license": "MIT", "dependencies": { + "@code-pushup/models": "https://pkg.pr.new/code-pushup/cli/@code-pushup/models@54857b1", "@code-pushup/portal-client": "^0.14.3", "@isaacs/cliui": "^8.0.2", "@nx/devkit": "19.8.13", @@ -2334,6 +2335,16 @@ } } }, + "node_modules/@code-pushup/models": { + "version": "0.72.1", + "resolved": "https://pkg.pr.new/code-pushup/cli/@code-pushup/models@54857b1", + "integrity": "sha512-zoMFExAt+PbHT/G4gEaX53JzrM/GINn2+RxSAUScJdmMxe+WwFuQSHq06airhdxjJ2a56VrCF13aWD8zGl3eaQ==", + "license": "MIT", + "dependencies": { + "vscode-material-icons": "^0.1.0", + "zod": "^4.0.5" + } + }, "node_modules/@code-pushup/portal-client": { "version": "0.14.3", "resolved": "https://registry.npmjs.org/@code-pushup/portal-client/-/portal-client-0.14.3.tgz", diff --git a/package.json b/package.json index 738f04ea6..69737b688 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "node": ">=22.14" }, "dependencies": { + "@code-pushup/models": "https://pkg.pr.new/code-pushup/cli/@code-pushup/models@54857b1", "@code-pushup/portal-client": "^0.14.3", "@isaacs/cliui": "^8.0.2", "@nx/devkit": "19.8.13", diff --git a/packages/models/package.json b/packages/models/package.json index 08205f3c9..15feec01e 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -26,6 +26,10 @@ "access": "public" }, "type": "module", + "files": [ + "dist", + "!**/*.tsbuildinfo" + ], "dependencies": { "zod": "^4.0.5", "vscode-material-icons": "^0.1.0" diff --git a/packages/models/project.json b/packages/models/project.json index 2f2d65e89..9981ae151 100644 --- a/packages/models/project.json +++ b/packages/models/project.json @@ -4,27 +4,21 @@ "sourceRoot": "packages/models/src", "projectType": "library", "targets": { - "build": { - "dependsOn": [{ "projects": "models-transformers", "target": "build" }], - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/models", - "main": "packages/models/src/index.ts", - "tsConfig": "packages/models/tsconfig.lib.json", - "assets": ["packages/models/*.md"] - } + "generate-docs": { + "command": "npx zod2md --config packages/models/zod2md.config.ts", + "cache": true, + "inputs": ["production", "^production", "{projectRoot}/zod2md.config.ts"], + "outputs": ["{projectRoot}/docs/models-reference.md"] }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/models/**/*.ts", - "packages/models/package.json" - ] - } + "build": { + "dependsOn": [ + "^build", + "generate-docs", + { "projects": "models-transformers", "target": "build" } + ], + "executor": "@nx/js:tsc" }, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { @@ -36,12 +30,6 @@ "options": { "configFile": "packages/models/vitest.int.config.ts" } - }, - "generate-docs": { - "command": "npx zod2md --config packages/models/zod2md.config.ts", - "cache": true, - "inputs": ["production", "^production", "{projectRoot}/zod2md.config.ts"], - "outputs": ["{projectRoot}/packages/models/docs/models-reference.md"] } }, "tags": ["scope:shared", "type:util", "publishable"] From 22e3256641bd1dc454d8e9f08633532ac8c683dd Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:17:33 +0200 Subject: [PATCH 05/17] chore: wip pkg new 2 --- .github/workflows/pr-pkg-pr-new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-pkg-pr-new.yml b/.github/workflows/pr-pkg-pr-new.yml index 107436aac..a233ec5ba 100644 --- a/.github/workflows/pr-pkg-pr-new.yml +++ b/.github/workflows/pr-pkg-pr-new.yml @@ -22,4 +22,4 @@ jobs: - name: Build affected packages run: npx nx run-many --target=build --parallel=3 --with-deps - name: Release packages - run: npx pkg-pr-new publish 'packages/models' + run: npx pkg-pr-new publish 'packages/models/dist' # 'packages/utils' 'packages/core' 'packages/cli' 'packages/create-cli' 'packages/ci' From bb2caa7485e3ff66dd4fba344ef03d7dd7e8bc14 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:26:00 +0200 Subject: [PATCH 06/17] chore: wip pkg new 3 --- packages/models/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/models/package.json b/packages/models/package.json index 15feec01e..c673e07d2 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -27,7 +27,7 @@ }, "type": "module", "files": [ - "dist", + "src", "!**/*.tsbuildinfo" ], "dependencies": { From a57fb44da344c3a38e2c9193507411cad4b2395c Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:33:25 +0200 Subject: [PATCH 07/17] chore: add files prop to pkg.json --- packages/ci/package.json | 6 +++++- packages/cli/package.json | 6 +++++- packages/core/package.json | 6 +++++- packages/create-cli/package.json | 6 +++++- packages/models/package.json | 10 +++++----- packages/nx-plugin/package.json | 6 +++++- packages/plugin-coverage/package.json | 6 +++++- packages/plugin-eslint/package.json | 6 +++++- packages/plugin-js-packages/package.json | 6 +++++- packages/plugin-jsdocs/package.json | 6 +++++- packages/plugin-lighthouse/package.json | 6 +++++- packages/plugin-typescript/package.json | 6 +++++- packages/utils/package.json | 6 +++++- 13 files changed, 65 insertions(+), 17 deletions(-) diff --git a/packages/ci/package.json b/packages/ci/package.json index 8696f7091..dfe00958c 100644 --- a/packages/ci/package.json +++ b/packages/ci/package.json @@ -33,5 +33,9 @@ "simple-git": "^3.20.0", "yaml": "^2.5.1", "zod": "^4.0.5" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/cli/package.json b/packages/cli/package.json index 113706c25..584b6969e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -51,5 +51,9 @@ "yargs": "^17.7.2", "ansis": "^3.3.0", "simple-git": "^3.20.0" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/core/package.json b/packages/core/package.json index 67c34ab30..c6b44b997 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -50,5 +50,9 @@ "@code-pushup/portal-client": { "optional": true } - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/create-cli/package.json b/packages/create-cli/package.json index 4e3ca7fab..629d7b826 100644 --- a/packages/create-cli/package.json +++ b/packages/create-cli/package.json @@ -28,5 +28,9 @@ "dependencies": { "@code-pushup/nx-plugin": "0.72.1", "@code-pushup/utils": "0.72.1" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/models/package.json b/packages/models/package.json index c673e07d2..a1d060284 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -26,12 +26,12 @@ "access": "public" }, "type": "module", - "files": [ - "src", - "!**/*.tsbuildinfo" - ], "dependencies": { "zod": "^4.0.5", "vscode-material-icons": "^0.1.0" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/nx-plugin/package.json b/packages/nx-plugin/package.json index 05bde48c1..4b2db5425 100644 --- a/packages/nx-plugin/package.json +++ b/packages/nx-plugin/package.json @@ -38,5 +38,9 @@ "ansis": "^3.3.0", "nx": "^17.0.0 || ^18.0.0 || ^19.0.0", "zod": "^4.0.5" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/plugin-coverage/package.json b/packages/plugin-coverage/package.json index 2d9cc4d3d..267a6017d 100644 --- a/packages/plugin-coverage/package.json +++ b/packages/plugin-coverage/package.json @@ -56,5 +56,9 @@ "@nx/vite": { "optional": true } - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/plugin-eslint/package.json b/packages/plugin-eslint/package.json index 414d6f91f..48e0d4b5a 100644 --- a/packages/plugin-eslint/package.json +++ b/packages/plugin-eslint/package.json @@ -51,5 +51,9 @@ "@nx/devkit": { "optional": true } - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/plugin-js-packages/package.json b/packages/plugin-js-packages/package.json index 160ee6db5..e901a5b92 100644 --- a/packages/plugin-js-packages/package.json +++ b/packages/plugin-js-packages/package.json @@ -43,5 +43,9 @@ "semver": "^7.6.0", "yargs": "^17.7.2", "zod": "^4.0.5" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/plugin-jsdocs/package.json b/packages/plugin-jsdocs/package.json index 13ff0581e..602f1e3b2 100644 --- a/packages/plugin-jsdocs/package.json +++ b/packages/plugin-jsdocs/package.json @@ -39,5 +39,9 @@ "@code-pushup/utils": "0.72.1", "zod": "^4.0.5", "ts-morph": "^24.0.0" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/plugin-lighthouse/package.json b/packages/plugin-lighthouse/package.json index 49baeb646..d1910e7cd 100644 --- a/packages/plugin-lighthouse/package.json +++ b/packages/plugin-lighthouse/package.json @@ -42,5 +42,9 @@ "chrome-launcher": "^1.1.1", "lighthouse": "^12.0.0", "lighthouse-logger": "2.0.1" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/plugin-typescript/package.json b/packages/plugin-typescript/package.json index 945c7d04e..820265755 100644 --- a/packages/plugin-typescript/package.json +++ b/packages/plugin-typescript/package.json @@ -30,5 +30,9 @@ "peerDependencies": { "typescript": ">=4.0.0" }, - "scripts": {} + "scripts": {}, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } diff --git a/packages/utils/package.json b/packages/utils/package.json index d6f277444..8fa88639b 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -38,5 +38,9 @@ "semver": "^7.6.0", "simple-git": "^3.20.0", "zod": "^4.0.5" - } + }, + "files": [ + "src", + "!**/*.tsbuildinfo" + ] } From 928677ee0f05f120d596fb58851c3dcd81f8c2d6 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:33:53 +0200 Subject: [PATCH 08/17] chore: adjust build and lint target --- e2e/ci-e2e/project.json | 8 +---- e2e/cli-e2e/project.json | 8 +---- e2e/create-cli-e2e/project.json | 8 +---- e2e/nx-plugin-e2e/project.json | 8 +---- e2e/plugin-coverage-e2e/project.json | 8 +---- e2e/plugin-eslint-e2e/project.json | 8 +---- e2e/plugin-js-packages-e2e/project.json | 8 +---- e2e/plugin-jsdocs-e2e/project.json | 8 +---- e2e/plugin-lighthouse-e2e/project.json | 8 +---- e2e/plugin-typescript-e2e/project.json | 8 +---- packages/ci/project.json | 15 ++------ packages/cli/project.json | 22 ++---------- packages/core/project.json | 22 ++---------- packages/create-cli/project.json | 22 ++---------- packages/models/project.json | 3 +- packages/nx-plugin/project.json | 45 ++---------------------- packages/plugin-coverage/project.json | 23 ++---------- packages/plugin-eslint/project.json | 23 ++---------- packages/plugin-js-packages/project.json | 23 ++---------- packages/plugin-jsdocs/project.json | 22 ++---------- packages/plugin-lighthouse/project.json | 22 ++---------- packages/plugin-typescript/project.json | 22 ++---------- packages/utils/project.json | 22 ++---------- testing/test-nx-utils/project.json | 19 ++-------- testing/test-setup/project.json | 19 ++-------- testing/test-utils/project.json | 19 ++-------- 26 files changed, 41 insertions(+), 382 deletions(-) diff --git a/e2e/ci-e2e/project.json b/e2e/ci-e2e/project.json index 563202450..29a33f65d 100644 --- a/e2e/ci-e2e/project.json +++ b/e2e/ci-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "e2e/ci-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/ci-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/cli-e2e/project.json b/e2e/cli-e2e/project.json index d93b112c8..ba2f90352 100644 --- a/e2e/cli-e2e/project.json +++ b/e2e/cli-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "e2e/cli-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/cli-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/create-cli-e2e/project.json b/e2e/create-cli-e2e/project.json index 71bb2986d..beeb09874 100644 --- a/e2e/create-cli-e2e/project.json +++ b/e2e/create-cli-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "examples/create-cli-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/create-cli-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/nx-plugin-e2e/project.json b/e2e/nx-plugin-e2e/project.json index 6caa7f3a8..9c7a190fc 100644 --- a/e2e/nx-plugin-e2e/project.json +++ b/e2e/nx-plugin-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "e2e/nx-plugin-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/nx-plugin-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/plugin-coverage-e2e/project.json b/e2e/plugin-coverage-e2e/project.json index 742c195d5..7b127aa13 100644 --- a/e2e/plugin-coverage-e2e/project.json +++ b/e2e/plugin-coverage-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "e2e/plugin-coverage-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/plugin-coverage-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/plugin-eslint-e2e/project.json b/e2e/plugin-eslint-e2e/project.json index cadc8583e..544d6a8ef 100644 --- a/e2e/plugin-eslint-e2e/project.json +++ b/e2e/plugin-eslint-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "e2e/plugin-eslint-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/plugin-eslint-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/plugin-js-packages-e2e/project.json b/e2e/plugin-js-packages-e2e/project.json index 47cca177c..901c92dd4 100644 --- a/e2e/plugin-js-packages-e2e/project.json +++ b/e2e/plugin-js-packages-e2e/project.json @@ -5,13 +5,7 @@ "sourceRoot": "e2e/plugin-js-packages-e2e/src", "implicitDependencies": ["cli", "plugin-js-packages"], "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/plugin-eslint-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/plugin-jsdocs-e2e/project.json b/e2e/plugin-jsdocs-e2e/project.json index d3f1542e9..4622cc015 100644 --- a/e2e/plugin-jsdocs-e2e/project.json +++ b/e2e/plugin-jsdocs-e2e/project.json @@ -6,13 +6,7 @@ "tags": ["scope:plugin", "type:e2e"], "implicitDependencies": ["cli", "plugin-jsdocs"], "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/plugin-jsdocs-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/plugin-lighthouse-e2e/project.json b/e2e/plugin-lighthouse-e2e/project.json index 3ffd40f9e..f8f4c9cb4 100644 --- a/e2e/plugin-lighthouse-e2e/project.json +++ b/e2e/plugin-lighthouse-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "e2e/plugin-lighthouse-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/plugin-lighthouse-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/e2e/plugin-typescript-e2e/project.json b/e2e/plugin-typescript-e2e/project.json index 6f07de55a..373fa2b01 100644 --- a/e2e/plugin-typescript-e2e/project.json +++ b/e2e/plugin-typescript-e2e/project.json @@ -4,13 +4,7 @@ "sourceRoot": "e2e/plugin-typescript-e2e/src", "projectType": "application", "targets": { - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["e2e/plugin-typescript-e2e/**/*.ts"] - } - }, + "lint": {}, "e2e": { "executor": "@nx/vite:test", "options": { diff --git a/packages/ci/project.json b/packages/ci/project.json index a74f13988..433089f77 100644 --- a/packages/ci/project.json +++ b/packages/ci/project.json @@ -4,19 +4,8 @@ "sourceRoot": "packages/ci/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/ci", - "main": "packages/ci/src/index.ts", - "tsConfig": "packages/ci/tsconfig.lib.json", - "assets": ["packages/ci/*.md"] - } - }, - "lint": { - "executor": "@nx/eslint:lint" - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/cli/project.json b/packages/cli/project.json index 180ef5c3f..f25d2cccf 100644 --- a/packages/cli/project.json +++ b/packages/cli/project.json @@ -4,26 +4,8 @@ "sourceRoot": "packages/cli/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/cli", - "main": "packages/cli/src/index.ts", - "tsConfig": "packages/cli/tsconfig.lib.json", - "assets": ["packages/cli/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/cli/**/*.ts", - "packages/cli/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/core/project.json b/packages/core/project.json index a830a353b..fe36dba07 100644 --- a/packages/core/project.json +++ b/packages/core/project.json @@ -4,26 +4,8 @@ "sourceRoot": "packages/core/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/core", - "main": "packages/core/src/index.ts", - "tsConfig": "packages/core/tsconfig.lib.json", - "assets": ["packages/core/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/core/**/*.ts", - "packages/core/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/create-cli/project.json b/packages/create-cli/project.json index ed0c24c55..11e1ef907 100644 --- a/packages/create-cli/project.json +++ b/packages/create-cli/project.json @@ -4,26 +4,8 @@ "sourceRoot": "packages/create-cli/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/create-cli", - "main": "packages/create-cli/src/index.ts", - "tsConfig": "packages/create-cli/tsconfig.lib.json", - "assets": ["packages/create-cli/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/create-cli/**/*.ts", - "packages/create-cli/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/models/project.json b/packages/models/project.json index 9981ae151..d80e38793 100644 --- a/packages/models/project.json +++ b/packages/models/project.json @@ -15,8 +15,7 @@ "^build", "generate-docs", { "projects": "models-transformers", "target": "build" } - ], - "executor": "@nx/js:tsc" + ] }, "lint": {}, "unit-test": { diff --git a/packages/nx-plugin/project.json b/packages/nx-plugin/project.json index 73ed871d4..5b70a6448 100644 --- a/packages/nx-plugin/project.json +++ b/packages/nx-plugin/project.json @@ -5,49 +5,8 @@ "projectType": "library", "implicitDependencies": ["cli"], "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/nx-plugin", - "main": "packages/nx-plugin/src/index.ts", - "tsConfig": "packages/nx-plugin/tsconfig.lib.json", - "assets": [ - "packages/nx-plugin/*.md", - { - "input": "./packages/nx-plugin/src", - "glob": "**/!(*.ts)", - "output": "./src" - }, - { - "input": "./packages/nx-plugin/src", - "glob": "**/*.d.ts", - "output": "./src" - }, - { - "input": "./packages/nx-plugin", - "glob": "generators.json", - "output": "." - }, - { - "input": "./packages/nx-plugin", - "glob": "executors.json", - "output": "." - } - ] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/nx-plugin/**/*.ts", - "packages/nx-plugin/package.json", - "packages/nx-plugin/generators.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/plugin-coverage/project.json b/packages/plugin-coverage/project.json index dbcc08847..ddef42a9d 100644 --- a/packages/plugin-coverage/project.json +++ b/packages/plugin-coverage/project.json @@ -4,27 +4,8 @@ "sourceRoot": "packages/plugin-coverage/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/plugin-coverage", - "main": "packages/plugin-coverage/src/index.ts", - "tsConfig": "packages/plugin-coverage/tsconfig.lib.json", - "additionalEntryPoints": ["packages/plugin-coverage/src/bin.ts"], - "assets": ["packages/plugin-coverage/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/plugin-coverage/**/*.ts", - "packages/plugin-coverage/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/plugin-eslint/project.json b/packages/plugin-eslint/project.json index 5d6c7fbe9..0f23cf33d 100644 --- a/packages/plugin-eslint/project.json +++ b/packages/plugin-eslint/project.json @@ -4,27 +4,8 @@ "sourceRoot": "packages/plugin-eslint/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/plugin-eslint", - "main": "packages/plugin-eslint/src/index.ts", - "tsConfig": "packages/plugin-eslint/tsconfig.lib.json", - "assets": ["packages/plugin-eslint/*.md"], - "additionalEntryPoints": ["packages/plugin-eslint/src/bin.ts"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/plugin-eslint/**/*.ts", - "packages/plugin-eslint/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/plugin-js-packages/project.json b/packages/plugin-js-packages/project.json index 44de3c7f5..d664a3817 100644 --- a/packages/plugin-js-packages/project.json +++ b/packages/plugin-js-packages/project.json @@ -4,27 +4,8 @@ "sourceRoot": "packages/plugin-js-packages/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/plugin-js-packages", - "main": "packages/plugin-js-packages/src/index.ts", - "tsConfig": "packages/plugin-js-packages/tsconfig.lib.json", - "additionalEntryPoints": ["packages/plugin-js-packages/src/bin.ts"], - "assets": ["packages/plugin-js-packages/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/plugin-js-packages/**/*.ts", - "packages/plugin-js-packages/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/plugin-jsdocs/project.json b/packages/plugin-jsdocs/project.json index 2eb8ef30b..ebe839f44 100644 --- a/packages/plugin-jsdocs/project.json +++ b/packages/plugin-jsdocs/project.json @@ -5,26 +5,8 @@ "projectType": "library", "tags": ["scope:plugin", "type:feature", "publishable"], "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/plugin-jsdocs", - "main": "packages/plugin-jsdocs/src/index.ts", - "tsConfig": "packages/plugin-jsdocs/tsconfig.lib.json", - "assets": ["packages/plugin-jsdocs/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/plugin-jsdocs/**/*.ts", - "packages/plugin-jsdocs/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/plugin-lighthouse/project.json b/packages/plugin-lighthouse/project.json index fb62179c0..9442227f4 100644 --- a/packages/plugin-lighthouse/project.json +++ b/packages/plugin-lighthouse/project.json @@ -4,26 +4,8 @@ "sourceRoot": "packages/plugin-lighthouse/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/plugin-lighthouse", - "main": "packages/plugin-lighthouse/src/index.ts", - "tsConfig": "packages/plugin-lighthouse/tsconfig.lib.json", - "assets": ["packages/plugin-lighthouse/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/plugin-lighthouse/**/*.ts", - "packages/plugin-lighthouse/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/plugin-typescript/project.json b/packages/plugin-typescript/project.json index 92da1ecdb..9b2265b73 100644 --- a/packages/plugin-typescript/project.json +++ b/packages/plugin-typescript/project.json @@ -4,26 +4,8 @@ "sourceRoot": "packages/plugin-typescript/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/plugin-typescript", - "main": "packages/plugin-typescript/src/index.ts", - "tsConfig": "packages/plugin-typescript/tsconfig.lib.json", - "assets": ["packages/plugin-typescript/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/plugin-typescript/**/*.ts", - "packages/plugin-typescript/package.json" - ] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/packages/utils/project.json b/packages/utils/project.json index ccf3c97f3..30e7fa046 100644 --- a/packages/utils/project.json +++ b/packages/utils/project.json @@ -4,26 +4,8 @@ "sourceRoot": "packages/utils/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/utils", - "main": "packages/utils/src/index.ts", - "tsConfig": "packages/utils/tsconfig.lib.json", - "assets": ["packages/utils/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/utils/**/*.ts", - "packages/utils/package.json" - ] - } - }, + "build": {}, + "lint": {}, "perf": { "command": "npx tsx --tsconfig=../tsconfig.perf.json", "options": { diff --git a/testing/test-nx-utils/project.json b/testing/test-nx-utils/project.json index c6272ad77..9fc33df87 100644 --- a/testing/test-nx-utils/project.json +++ b/testing/test-nx-utils/project.json @@ -4,23 +4,8 @@ "sourceRoot": "testing/test-nx-utils/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/testing/test-nx-utils", - "main": "testing/test-nx-utils/src/index.ts", - "tsConfig": "testing/test-nx-utils/tsconfig.lib.json", - "assets": ["testing/test-nx-utils/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["testing/test-nx-utils/**/*.ts"] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { diff --git a/testing/test-setup/project.json b/testing/test-setup/project.json index 613d2436d..6320cfaab 100644 --- a/testing/test-setup/project.json +++ b/testing/test-setup/project.json @@ -4,28 +4,13 @@ "sourceRoot": "testing/test-setup/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/testing/test-setup", - "main": "testing/test-setup/src/index.ts", - "tsConfig": "testing/test-setup/tsconfig.lib.json", - "assets": ["testing/test-setup/*.md"] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { "configFile": "testing/test-setup/vitest.unit.config.ts" } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["testing/test-setup/**/*.ts"] - } } }, "tags": ["scope:shared", "type:testing"] diff --git a/testing/test-utils/project.json b/testing/test-utils/project.json index ee6ef8ec4..ccc11d50c 100644 --- a/testing/test-utils/project.json +++ b/testing/test-utils/project.json @@ -4,23 +4,8 @@ "sourceRoot": "testing/test-utils/src", "projectType": "library", "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/testing/test-utils", - "main": "testing/test-utils/src/index.ts", - "tsConfig": "testing/test-utils/tsconfig.lib.json", - "assets": ["testing/test-utils/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["testing/test-utils/**/*.ts"] - } - }, + "build": {}, + "lint": {}, "unit-test": { "executor": "@nx/vite:test", "options": { From 869b2bbf9a4201db141326b8723e2b642aa05573 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:35:09 +0200 Subject: [PATCH 09/17] chore: add all pkgs to pkg new action --- .github/workflows/pr-pkg-pr-new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-pkg-pr-new.yml b/.github/workflows/pr-pkg-pr-new.yml index a233ec5ba..2c9b7bc1d 100644 --- a/.github/workflows/pr-pkg-pr-new.yml +++ b/.github/workflows/pr-pkg-pr-new.yml @@ -22,4 +22,4 @@ jobs: - name: Build affected packages run: npx nx run-many --target=build --parallel=3 --with-deps - name: Release packages - run: npx pkg-pr-new publish 'packages/models/dist' # 'packages/utils' 'packages/core' 'packages/cli' 'packages/create-cli' 'packages/ci' + run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/cli/dist" "packages/create-cli/dist" "packages/ci/dist" From 64650b14e41c98c19346d4137b7434a22f4c385a Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:42:42 +0200 Subject: [PATCH 10/17] chore: adjust GH actions --- .github/workflows/ci.yml | 2 ++ .github/workflows/pr-pkg-pr-new.yml | 25 ------------------------- 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/pr-pkg-pr-new.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43be434cb..b8d1800ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,3 +141,5 @@ jobs: run: npm ci - name: Build affected projects run: npx nx affected:build --parallel=3 + - name: Test-release packages + run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/cli/dist" "packages/create-cli/dist" "packages/ci/dist" "packages/plugin-coverage/dist" "packages/plugin-eslint/dist" "packages/plugin-js-packages/dist" "packages/plugin-jsdocs/dist" "packages/plugin-lighthouse/dist" "packages/plugin-typescript/dist" diff --git a/.github/workflows/pr-pkg-pr-new.yml b/.github/workflows/pr-pkg-pr-new.yml deleted file mode 100644 index 2c9b7bc1d..000000000 --- a/.github/workflows/pr-pkg-pr-new.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Publish Any Commit -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - cache: npm - - name: Set base and head for Nx affected commands - uses: nrwl/nx-set-shas@v4 - - name: Install dependencies - run: npm ci - - name: Build affected packages - run: npx nx run-many --target=build --parallel=3 --with-deps - - name: Release packages - run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/cli/dist" "packages/create-cli/dist" "packages/ci/dist" From da1005880d81342afd0ccc90fbf71a41f179a511 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:52:23 +0200 Subject: [PATCH 11/17] chore: wip pkg-new 4 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8d1800ba..4da86b31e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,4 +142,6 @@ jobs: - name: Build affected projects run: npx nx affected:build --parallel=3 - name: Test-release packages - run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/cli/dist" "packages/create-cli/dist" "packages/ci/dist" "packages/plugin-coverage/dist" "packages/plugin-eslint/dist" "packages/plugin-js-packages/dist" "packages/plugin-jsdocs/dist" "packages/plugin-lighthouse/dist" "packages/plugin-typescript/dist" + run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/create-cli/dist" "packages/ci/dist" "packages/plugin-coverage/dist" "packages/plugin-eslint/dist" "packages/plugin-js-packages/dist" "packages/plugin-jsdocs/dist" "packages/plugin-lighthouse/dist" "packages/plugin-typescript/dist" + - name: Test-release packages with bin + run: npx pkg-pr-new publish --bin "packages/cli/dist" From 47aba4f1d3456108a5875ac90908d78ad95174b5 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 01:55:00 +0200 Subject: [PATCH 12/17] chore: wip pkg-new 5 --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4da86b31e..b8d1800ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,6 +142,4 @@ jobs: - name: Build affected projects run: npx nx affected:build --parallel=3 - name: Test-release packages - run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/create-cli/dist" "packages/ci/dist" "packages/plugin-coverage/dist" "packages/plugin-eslint/dist" "packages/plugin-js-packages/dist" "packages/plugin-jsdocs/dist" "packages/plugin-lighthouse/dist" "packages/plugin-typescript/dist" - - name: Test-release packages with bin - run: npx pkg-pr-new publish --bin "packages/cli/dist" + run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/cli/dist" "packages/create-cli/dist" "packages/ci/dist" "packages/plugin-coverage/dist" "packages/plugin-eslint/dist" "packages/plugin-js-packages/dist" "packages/plugin-jsdocs/dist" "packages/plugin-lighthouse/dist" "packages/plugin-typescript/dist" From 1dcc0f54bab7a55b64a0bc375fdac34317847475 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 02:12:06 +0200 Subject: [PATCH 13/17] chore: remove pkg --- package-lock.json | 11 ----------- package.json | 1 - 2 files changed, 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index e72f17ec0..fc7811dba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "@code-pushup/models": "https://pkg.pr.new/code-pushup/cli/@code-pushup/models@54857b1", "@code-pushup/portal-client": "^0.14.3", "@isaacs/cliui": "^8.0.2", "@nx/devkit": "19.8.13", @@ -2335,16 +2334,6 @@ } } }, - "node_modules/@code-pushup/models": { - "version": "0.72.1", - "resolved": "https://pkg.pr.new/code-pushup/cli/@code-pushup/models@54857b1", - "integrity": "sha512-zoMFExAt+PbHT/G4gEaX53JzrM/GINn2+RxSAUScJdmMxe+WwFuQSHq06airhdxjJ2a56VrCF13aWD8zGl3eaQ==", - "license": "MIT", - "dependencies": { - "vscode-material-icons": "^0.1.0", - "zod": "^4.0.5" - } - }, "node_modules/@code-pushup/portal-client": { "version": "0.14.3", "resolved": "https://registry.npmjs.org/@code-pushup/portal-client/-/portal-client-0.14.3.tgz", diff --git a/package.json b/package.json index 69737b688..738f04ea6 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "node": ">=22.14" }, "dependencies": { - "@code-pushup/models": "https://pkg.pr.new/code-pushup/cli/@code-pushup/models@54857b1", "@code-pushup/portal-client": "^0.14.3", "@isaacs/cliui": "^8.0.2", "@nx/devkit": "19.8.13", From 9d8a8b94f7924d498c40d985ee4e0739ecfbfb1d Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 02:51:47 +0200 Subject: [PATCH 14/17] chore: remove pkg --- packages/nx-plugin/package.json | 3 +++ packages/nx-plugin/project.json | 43 +++++++++++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/packages/nx-plugin/package.json b/packages/nx-plugin/package.json index 4b2db5425..73fd75e8a 100644 --- a/packages/nx-plugin/package.json +++ b/packages/nx-plugin/package.json @@ -41,6 +41,9 @@ }, "files": [ "src", + "./*.md", + "./generators.json", + "./executors.json", "!**/*.tsbuildinfo" ] } diff --git a/packages/nx-plugin/project.json b/packages/nx-plugin/project.json index 5b70a6448..7b2dfe794 100644 --- a/packages/nx-plugin/project.json +++ b/packages/nx-plugin/project.json @@ -5,8 +5,47 @@ "projectType": "library", "implicitDependencies": ["cli"], "targets": { - "build": {}, - "lint": {}, + "build": { + "executor": "@nx/js:tsc", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "{projectRoot}/dist", + "main": "{projectRoot}/src/index.ts", + "tsConfig": "{projectRoot}/tsconfig.lib.json", + "assets": [ + "{projectRoot}/*.md", + { + "input": "./packages/nx-plugin/src", + "glob": "**/!(*.ts)", + "output": "./src" + }, + { + "input": "./packages/nx-plugin/src", + "glob": "**/*.d.ts", + "output": "./src" + }, + { + "input": "./packages/nx-plugin", + "glob": "generators.json", + "output": "." + }, + { + "input": "./packages/nx-plugin", + "glob": "executors.json", + "output": "." + } + ] + } + }, + "lint": { + "options": { + "lintFilePatterns": [ + "packages/nx-plugin/**/*.ts", + "packages/nx-plugin/package.json", + "packages/nx-plugin/generators.json" + ] + } + }, "unit-test": { "executor": "@nx/vite:test", "options": { From 87d45b7ff36eb9b3dd5c0b593fbb20fedd8d422d Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Aug 2025 03:29:20 +0200 Subject: [PATCH 15/17] chore: remove pkg files listing --- packages/nx-plugin/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/nx-plugin/package.json b/packages/nx-plugin/package.json index 73fd75e8a..c78bacf6f 100644 --- a/packages/nx-plugin/package.json +++ b/packages/nx-plugin/package.json @@ -41,7 +41,6 @@ }, "files": [ "src", - "./*.md", "./generators.json", "./executors.json", "!**/*.tsbuildinfo" From 4e5aac83491c224086c1a198f01a06f99cc378d4 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Aug 2025 01:09:36 +0200 Subject: [PATCH 16/17] chore: reduce build target config --- packages/nx-plugin/project.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/nx-plugin/project.json b/packages/nx-plugin/project.json index 7b2dfe794..df20084e3 100644 --- a/packages/nx-plugin/project.json +++ b/packages/nx-plugin/project.json @@ -6,12 +6,7 @@ "implicitDependencies": ["cli"], "targets": { "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], "options": { - "outputPath": "{projectRoot}/dist", - "main": "{projectRoot}/src/index.ts", - "tsConfig": "{projectRoot}/tsconfig.lib.json", "assets": [ "{projectRoot}/*.md", { From e54b74a20e375c45cf7d813c5d17763713b65197 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Aug 2025 01:16:18 +0200 Subject: [PATCH 17/17] chore: adjust GH job --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8d1800ba..6863fbcb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,7 +139,7 @@ jobs: uses: nrwl/nx-set-shas@v4 - name: Install dependencies run: npm ci - - name: Build affected projects - run: npx nx affected:build --parallel=3 + - name: Build all projects # affected is not used to be able to test-releae packages + run: npx nx run-many --target=build --parallel=3 - name: Test-release packages - run: npx pkg-pr-new publish "packages/models/dist" "packages/utils/dist" "packages/core/dist" "packages/cli/dist" "packages/create-cli/dist" "packages/ci/dist" "packages/plugin-coverage/dist" "packages/plugin-eslint/dist" "packages/plugin-js-packages/dist" "packages/plugin-jsdocs/dist" "packages/plugin-lighthouse/dist" "packages/plugin-typescript/dist" + run: npx pkg-pr-new publish "packages/**/dist"