From b0365ec7a165bac3e9284197a5ba23f42aaf4153 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Fri, 23 Oct 2026 15:19:25 +0530 Subject: [PATCH 1/2] chore(release): publish to npm with trusted publishing Replace release-v1-legacy-plugins.yml and release.json with one release.yml that runs on release:published, using the same filename as main so one npm trusted publisher per package covers both lines. Drop NPM_TOKEN in favour of id-token: write (OIDC), run on Node 24 with npm@latest (trusted publishing needs npm >= 11.5.1), install with a frozen lockfile and check out the release tag without persisted credentials. Each of the 20 packages publishes in its own step under the v1-x dist-tag, in the old order, and is skipped when its version is already on npm. Set repository.url to the canonical git+https form for this repo, which npm checks trusted publishes and provenance against. Co-Authored-By: Claude Opus 5.5 --- .github/config/release.json | 29 --- .../workflows/release-v1-legacy-plugins.yml | 215 ---------------- .github/workflows/release.yml | 235 ++++++++++++++++++ .talismanrc | 2 + packages/contentstack-audit/package.json | 6 +- packages/contentstack-bootstrap/package.json | 6 +- packages/contentstack-branches/package.json | 6 +- .../contentstack-bulk-publish/package.json | 6 +- .../package.json | 6 +- packages/contentstack-clone/package.json | 6 +- .../contentstack-content-type/package.json | 2 +- .../contentstack-export-to-csv/package.json | 6 +- packages/contentstack-export/package.json | 6 +- .../contentstack-import-setup/package.json | 6 +- packages/contentstack-import/package.json | 6 +- packages/contentstack-migration/package.json | 6 +- .../contentstack-query-export/package.json | 6 +- packages/contentstack-seed/package.json | 6 +- packages/contentstack-variants/package.json | 5 + 19 files changed, 308 insertions(+), 258 deletions(-) delete mode 100755 .github/config/release.json delete mode 100644 .github/workflows/release-v1-legacy-plugins.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/config/release.json b/.github/config/release.json deleted file mode 100755 index 8bb034f84..000000000 --- a/.github/config/release.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "releaseAll": true, - "plugins": { - "variants": false, - "query-export": false, - "utilities": false, - "command": false, - "config": false, - "auth": false, - "export": false, - "import": false, - "clone": false, - "export-to-csv": false, - "migrate-rte": false, - "migration": false, - "seed": false, - "bootstrap": false, - "bulk-publish": false, - "dev-dependencies": false, - "launch": false, - "branches": false, - "apps-cli": false, - "content-type": false, - "regex-validate": false, - "tsgen": false, - "bulk-operations": false, - "core": false - } -} diff --git a/.github/workflows/release-v1-legacy-plugins.yml b/.github/workflows/release-v1-legacy-plugins.yml deleted file mode 100644 index 7ab4bb497..000000000 --- a/.github/workflows/release-v1-legacy-plugins.yml +++ /dev/null @@ -1,215 +0,0 @@ -name: Release CLI Plugins v1-Legacy - -on: - push: - branches: [v1-legacy] - workflow_dispatch: # manually trigger the workflow - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - with: - version: 10.28.0 - - uses: actions/setup-node@v4 - with: - node-version: '22.x' - - - name: Enable Corepack - run: corepack enable - - - name: Install pnpm - run: corepack prepare pnpm@10.28.0 --activate - - - name: Clean the repository - run: pnpm run clean:all - - - name: Install root dependencies - run: pnpm install --no-frozen-lockfile - - - name: Build all plugins - run: pnpm -r --sort run build - - - name: Reading Configuration - id: release_config - uses: rgarcia-phi/json-to-variables@v1.1.0 - with: - filename: .github/config/release.json - prefix: release - - # Variants - - name: Publishing variants (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-variants/package.json - tag: v1-x - - # Export - - name: Publishing export (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-export/package.json - tag: v1-x - - # Audit - - name: Publishing audit (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-audit/package.json - tag: v1-x - - # Import - - name: Publishing import (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-import/package.json - tag: v1-x - - # Clone - - name: Publishing clone (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-clone/package.json - tag: v1-x - - # Import Setup - - name: Publishing import-setup (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-import-setup/package.json - tag: v1-x - - # Export to CSV - - name: Publishing export to csv (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-export-to-csv/package.json - tag: v1-x - - # Migration - - name: Publishing migration (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-migration/package.json - tag: v1-x - - # Migrate RTE - - name: Publishing migrate RTE (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-migrate-rte/package.json - tag: v1-x - - # Seed - - name: Publishing seed (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-seed/package.json - tag: v1-x - - # Bootstrap - - name: Publishing bootstrap (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-bootstrap/package.json - tag: v1-x - - # Bulk Publish - - name: Publishing bulk publish (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-bulk-publish/package.json - tag: v1-x - - # Bulk Operations - - name: Publishing bulk operations (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-bulk-operations/package.json - tag: v1-x - - # Branches - - name: Publishing branches (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-branches/package.json - tag: v1-x - - # Apps CLI - - name: Publishing apps-cli (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-apps-cli/package.json - tag: v1-x - - # Query Export - - name: Publishing query export (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-query-export/package.json - tag: v1-x - - # Content Type - - name: Publishing content-type (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-content-type/package.json - tag: v1-x - - # Regex Validate - - name: Publishing regex-validate (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-cli-cm-regex-validate/package.json - tag: v1-x - - # Tsgen - - name: Publishing tsgen (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-cli-tsgen/package.json - tag: v1-x - - # External Migrate - - name: Publishing external-migrate (Production) - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./packages/contentstack-external-migrate/package.json - tag: v1-x - - - name: Create Production Release - id: create_release - env: - GITHUB_TOKEN: ${{ secrets.PKG_TOKEN }} - VERSION: ${{ steps.publish-plugins.outputs.version }} - run: | - # Get the previous production release for comparison - PREVIOUS_PROD=$(gh release list --limit 10 | grep -v 'prerelease' | head -1 | cut -f1) - - if [ -n "$PREVIOUS_PROD" ]; then - gh release create "v${VERSION}" --title "v1-Legacy Release $VERSION" --notes-from-tag "$PREVIOUS_PROD" --latest=false - else - gh release create "v${VERSION}" --title "v1-Legacy Release $VERSION" --generate-notes --latest=false - fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..e02b06b0c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,235 @@ +name: Publish packages to npmjs registry + +on: + release: + types: [published] + +jobs: + publish-npm: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v7 + with: + ref: ${{ github.event.release.tag_name }} + persist-credentials: false + - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 + with: + version: 10.28.0 + - uses: actions/setup-node@v7 + with: + node-version: 24 + registry-url: https://registry.npmjs.org/ + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build all plugins + run: pnpm -r --sort run build + + - name: Update npm + run: npm install -g npm@latest + + # Each step publishes its package unless that version is already on npm. + - name: Publish variants + working-directory: packages/contentstack-variants + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish export + working-directory: packages/contentstack-export + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish audit + working-directory: packages/contentstack-audit + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish import + working-directory: packages/contentstack-import + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish clone + working-directory: packages/contentstack-clone + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish import-setup + working-directory: packages/contentstack-import-setup + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish export-to-csv + working-directory: packages/contentstack-export-to-csv + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish migration + working-directory: packages/contentstack-migration + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish migrate-rte + working-directory: packages/contentstack-migrate-rte + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish seed + working-directory: packages/contentstack-seed + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish bootstrap + working-directory: packages/contentstack-bootstrap + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish bulk-publish + working-directory: packages/contentstack-bulk-publish + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish bulk-operations + working-directory: packages/contentstack-bulk-operations + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish branches + working-directory: packages/contentstack-branches + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish apps-cli + working-directory: packages/contentstack-apps-cli + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish query-export + working-directory: packages/contentstack-query-export + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish content-type + working-directory: packages/contentstack-content-type + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish regex-validate + working-directory: packages/contentstack-cli-cm-regex-validate + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish tsgen + working-directory: packages/contentstack-cli-tsgen + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi + + - name: Publish external-migrate + working-directory: packages/contentstack-external-migrate + run: | + name=$(jq -r .name package.json); version=$(jq -r .version package.json) + if npm view "$name@$version" version >/dev/null 2>&1; then + echo "skip $name@$version (already on npm)" + else + npm publish --access public --tag v1-x + fi diff --git a/.talismanrc b/.talismanrc index d25a72719..d5d840813 100644 --- a/.talismanrc +++ b/.talismanrc @@ -3,4 +3,6 @@ fileignoreconfig: ignore_detectors: - filecontent - base64content + - filename: .github/workflows/release.yml + checksum: cafc0261a5b17bf6e7d7063672cbbc841144fa68cf3d9c660067fcbe61d52114 version: '1.0' \ No newline at end of file diff --git a/packages/contentstack-audit/package.json b/packages/contentstack-audit/package.json index 7b6390e9a..74e02e1a5 100644 --- a/packages/contentstack-audit/package.json +++ b/packages/contentstack-audit/package.json @@ -10,7 +10,11 @@ "bin": { "audit": "./bin/run.js" }, - "repository": "contentstack/audit", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-audit" + }, "files": [ "/bin", "/lib", diff --git a/packages/contentstack-bootstrap/package.json b/packages/contentstack-bootstrap/package.json index 349f8683b..382a52523 100644 --- a/packages/contentstack-bootstrap/package.json +++ b/packages/contentstack-bootstrap/package.json @@ -69,5 +69,9 @@ "cm:bootstrap": "BTSTRP" } }, - "repository": "contentstack/cli" + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-bootstrap" + } } diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index d9e7c4687..41804ffef 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -75,5 +75,9 @@ "cm:branches": "BRLS" } }, - "repository": "https://github.com/contentstack/cli" + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-branches" + } } diff --git a/packages/contentstack-bulk-publish/package.json b/packages/contentstack-bulk-publish/package.json index 1da3c74fe..b1ded18d6 100644 --- a/packages/contentstack-bulk-publish/package.json +++ b/packages/contentstack-bulk-publish/package.json @@ -87,7 +87,11 @@ "cm:bulk-publish:configure": "O-BP-CNF" } }, - "repository": "https://github.com/contentstack/cli", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-bulk-publish" + }, "scripts": { "postpack": "rm -f oclif.manifest.json", "prepack": "oclif manifest && oclif readme", diff --git a/packages/contentstack-cli-cm-regex-validate/package.json b/packages/contentstack-cli-cm-regex-validate/package.json index 3aa219f38..fc1f112cc 100644 --- a/packages/contentstack-cli-cm-regex-validate/package.json +++ b/packages/contentstack-cli-cm-regex-validate/package.json @@ -55,7 +55,11 @@ "@oclif/plugin-help" ] }, - "repository": "contentstack/cli-cm-regex-validate", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-cli-cm-regex-validate" + }, "scripts": { "mocha": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"", "postpack": "rm -f oclif.manifest.json", diff --git a/packages/contentstack-clone/package.json b/packages/contentstack-clone/package.json index 22ec9f251..013629e30 100644 --- a/packages/contentstack-clone/package.json +++ b/packages/contentstack-clone/package.json @@ -59,7 +59,11 @@ "bin": "csdx", "repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-clone/<%- commandPath %>" }, - "repository": "https://github.com/contentstack/cli", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-clone" + }, "scripts": { "build": "pnpm compile && oclif manifest && oclif readme", "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", diff --git a/packages/contentstack-content-type/package.json b/packages/contentstack-content-type/package.json index ccd9bb3db..92c502bf1 100644 --- a/packages/contentstack-content-type/package.json +++ b/packages/contentstack-content-type/package.json @@ -61,7 +61,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/contentstack/cli-plugins.git", + "url": "git+https://github.com/contentstack/cli-plugins.git", "directory": "packages/contentstack-content-type" }, "scripts": { diff --git a/packages/contentstack-export-to-csv/package.json b/packages/contentstack-export-to-csv/package.json index 7933df68f..21bffb71f 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -60,7 +60,11 @@ "cm:export-to-csv": "EXPRTCSV" } }, - "repository": "https://github.com/contentstack/cli", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-export-to-csv" + }, "scripts": { "build": "pnpm compile && oclif manifest && oclif readme", "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", diff --git a/packages/contentstack-export/package.json b/packages/contentstack-export/package.json index 10d2a6ae3..e7c4f6760 100644 --- a/packages/contentstack-export/package.json +++ b/packages/contentstack-export/package.json @@ -99,5 +99,9 @@ "assetsScan" ] }, - "repository": "https://github.com/contentstack/cli" + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-export" + } } diff --git a/packages/contentstack-import-setup/package.json b/packages/contentstack-import-setup/package.json index 664cbacfb..c0d1af7ad 100644 --- a/packages/contentstack-import-setup/package.json +++ b/packages/contentstack-import-setup/package.json @@ -75,5 +75,9 @@ "cm:stacks:import": "IMPRTSTP" } }, - "repository": "https://github.com/contentstack/cli" + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-import-setup" + } } diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 9dbf41fa8..1bf88e0a6 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -91,5 +91,9 @@ "assetsScan" ] }, - "repository": "https://github.com/contentstack/cli" + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-import" + } } diff --git a/packages/contentstack-migration/package.json b/packages/contentstack-migration/package.json index 3f4dfdac7..5849d4c2c 100644 --- a/packages/contentstack-migration/package.json +++ b/packages/contentstack-migration/package.json @@ -51,7 +51,11 @@ "bin": "csdx", "repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-migration/<%- commandPath %>" }, - "repository": "contentstack/cli", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-migration" + }, "scripts": { "build": "pnpm compile && oclif manifest && oclif readme", "postpack": "rm -f oclif.manifest.json", diff --git a/packages/contentstack-query-export/package.json b/packages/contentstack-query-export/package.json index 986b262f3..c00796cfb 100644 --- a/packages/contentstack-query-export/package.json +++ b/packages/contentstack-query-export/package.json @@ -97,5 +97,9 @@ "cm:export:query": "EXPRTQRY" } }, - "repository": "https://github.com/contentstack/cli" + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-query-export" + } } diff --git a/packages/contentstack-seed/package.json b/packages/contentstack-seed/package.json index 7e45e558e..4f7b2efe3 100644 --- a/packages/contentstack-seed/package.json +++ b/packages/contentstack-seed/package.json @@ -60,7 +60,11 @@ "cm:seed": "O-SEED" } }, - "repository": "contentstack/cli", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-seed" + }, "scripts": { "test": "jest", "pack": "npm pack --dry-run", diff --git a/packages/contentstack-variants/package.json b/packages/contentstack-variants/package.json index 3769b55a0..1ef9872f9 100644 --- a/packages/contentstack-variants/package.json +++ b/packages/contentstack-variants/package.json @@ -2,6 +2,11 @@ "name": "@contentstack/cli-variants", "version": "1.6.4", "description": "Variants plugin", + "repository": { + "type": "git", + "url": "git+https://github.com/contentstack/cli-plugins.git", + "directory": "packages/contentstack-variants" + }, "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { From 7f501e5c3f8a911cc092ecdcaf8119b59f2c876c Mon Sep 17 00:00:00 2001 From: raj pandey Date: Fri, 23 Oct 2026 15:34:43 +0530 Subject: [PATCH 2/2] Lock file update --- pnpm-lock.yaml | 103 +++++++++++++++++++++----------------------- pnpm-workspace.yaml | 7 +-- 2 files changed, 54 insertions(+), 56 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cacfe1535..76cac1468 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,14 +6,15 @@ settings: overrides: tmp: 0.2.7 - uuid: 14.0.2 + uuid: 14.0.3 lodash: 4.18.1 brace-expansion: 5.0.12 - js-yaml: 5.4.3 - fast-uri: 4.2.1 + js-yaml: 5.5.0 + fast-uri: 4.2.3 ws: 8.22.0 proxy-addr: 2.0.8 adm-zip: 0.6.1 + qs: 6.16.1 importers: @@ -351,8 +352,8 @@ importers: specifier: ^2.8.1 version: 2.8.1 uuid: - specifier: 14.0.2 - version: 14.0.2 + specifier: 14.0.3 + version: 14.0.3 devDependencies: '@eslint/eslintrc': specifier: ^3.3.1 @@ -1043,8 +1044,8 @@ importers: specifier: ^2.8.1 version: 2.8.1 uuid: - specifier: 14.0.2 - version: 14.0.2 + specifier: 14.0.3 + version: 14.0.3 devDependencies: '@oclif/test': specifier: ^3.0.0 @@ -4160,6 +4161,9 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + argparse@3.0.3: + resolution: {integrity: sha512-Sn98ftV3KfsO8xfLPHG6oT8y+b0yvbrLgZjgPDXsharNY15tTAjqIsIju4S32nl6/iEUNNE4v+yL2Zhm8ooP3w==} + array-back@1.0.4: resolution: {integrity: sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==} engines: {node: '>=0.12.0'} @@ -5584,8 +5588,8 @@ packages: fast-levenshtein@3.0.0: resolution: {integrity: sha512-hKKNajm46uNmTlhHSyZkmToAc56uZJwYq7yrciZjqOxnlfQwERDQJmHPUp7m1m9wx8vgOe8IaCKZ5Kv2k1DdCQ==} - fast-uri@4.2.1: - resolution: {integrity: sha512-TmHQgewjHtMq1E5QKA0tOE0yeYGQs25KZC/ziJpubRtWI15W92e6vPFydWOeZBVROSHBYw/QhD9d5OefdD6LDg==} + fast-uri@4.2.3: + resolution: {integrity: sha512-I1PXwP5eAhlNlcdpjt9CgB59op2ZvZfxw+BkqGFVIUOgNpCVTcTqp3HhTX7brxj5vsip+nSY4nTvff+eIA76hg==} fastest-levenshtein@1.0.16: resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==} @@ -6675,8 +6679,8 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-yaml@5.4.3: - resolution: {integrity: sha512-yzzNtgczwgoVHNigCyKTXcQJU4Y8t/ikU4UxXW0BvrLfHTGWZhsNcOT2s/a7vn81/4KqVnNmHjaUEPlvWnNwVw==} + js-yaml@5.5.0: + resolution: {integrity: sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg==} hasBin: true js2xmlparser@4.0.2: @@ -7717,12 +7721,8 @@ packages: pure-rand@7.0.1: resolution: {integrity: sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==} - qs@6.15.3: - resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==} - engines: {node: '>=0.6'} - - qs@6.16.0: - resolution: {integrity: sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==} + qs@6.16.1: + resolution: {integrity: sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==} engines: {node: '>=0.6'} querystring@0.2.1: @@ -8822,8 +8822,8 @@ packages: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} - uuid@14.0.2: - resolution: {integrity: sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==} + uuid@14.0.3: + resolution: {integrity: sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw==} hasBin: true v8-compile-cache-lib@3.0.1: @@ -10284,7 +10284,7 @@ snapshots: inquirer: 8.2.7(@types/node@14.18.63) inquirer-search-checkbox: 1.0.0 inquirer-search-list: 1.2.6 - js-yaml: 5.4.3 + js-yaml: 5.5.0 klona: 2.0.6 lodash: 4.18.1 mkdirp: 1.0.4 @@ -10298,7 +10298,7 @@ snapshots: tslib: 2.8.1 tty-table: 4.2.3 unique-string: 2.0.0 - uuid: 14.0.2 + uuid: 14.0.3 winston: 3.19.0 xdg-basedir: 4.0.0 transitivePeerDependencies: @@ -10323,7 +10323,7 @@ snapshots: inquirer: 8.2.7(@types/node@14.18.63) inquirer-search-checkbox: 1.0.0 inquirer-search-list: 1.2.6 - js-yaml: 5.4.3 + js-yaml: 5.5.0 klona: 2.0.6 lodash: 4.18.1 mkdirp: 1.0.4 @@ -10337,7 +10337,7 @@ snapshots: tslib: 2.8.1 tty-table: 4.2.3 unique-string: 2.0.0 - uuid: 14.0.2 + uuid: 14.0.3 winston: 3.19.0 xdg-basedir: 4.0.0 transitivePeerDependencies: @@ -10362,7 +10362,7 @@ snapshots: inquirer: 8.2.7(@types/node@18.19.130) inquirer-search-checkbox: 1.0.0 inquirer-search-list: 1.2.6 - js-yaml: 5.4.3 + js-yaml: 5.5.0 klona: 2.0.6 lodash: 4.18.1 mkdirp: 1.0.4 @@ -10376,7 +10376,7 @@ snapshots: tslib: 2.8.1 tty-table: 4.2.3 unique-string: 2.0.0 - uuid: 14.0.2 + uuid: 14.0.3 winston: 3.19.0 xdg-basedir: 4.0.0 transitivePeerDependencies: @@ -10401,7 +10401,7 @@ snapshots: inquirer: 8.2.7(@types/node@20.19.43) inquirer-search-checkbox: 1.0.0 inquirer-search-list: 1.2.6 - js-yaml: 5.4.3 + js-yaml: 5.5.0 klona: 2.0.6 lodash: 4.18.1 mkdirp: 1.0.4 @@ -10415,7 +10415,7 @@ snapshots: tslib: 2.8.1 tty-table: 4.2.3 unique-string: 2.0.0 - uuid: 14.0.2 + uuid: 14.0.3 winston: 3.19.0 xdg-basedir: 4.0.0 transitivePeerDependencies: @@ -10440,7 +10440,7 @@ snapshots: inquirer: 8.2.7(@types/node@22.20.1) inquirer-search-checkbox: 1.0.0 inquirer-search-list: 1.2.6 - js-yaml: 5.4.3 + js-yaml: 5.5.0 klona: 2.0.6 lodash: 4.18.1 mkdirp: 1.0.4 @@ -10454,7 +10454,7 @@ snapshots: tslib: 2.8.1 tty-table: 4.2.3 unique-string: 2.0.0 - uuid: 14.0.2 + uuid: 14.0.3 winston: 3.19.0 xdg-basedir: 4.0.0 transitivePeerDependencies: @@ -10467,7 +10467,7 @@ snapshots: axios: 1.20.0(debug@4.4.3) axios-mock-adapter: 2.1.0(axios@1.20.0) lodash: 4.18.1 - qs: 6.16.0 + qs: 6.16.1 tslib: 2.8.1 transitivePeerDependencies: - debug @@ -10496,7 +10496,7 @@ snapshots: lodash.isundefined: 3.0.1 lodash.kebabcase: 4.1.1 slate: 0.103.0 - uuid: 14.0.2 + uuid: 14.0.3 '@contentstack/management@1.31.2(debug@4.4.3)': dependencies: @@ -10508,7 +10508,7 @@ snapshots: husky: 9.1.7 lodash: 4.18.1 otplib: 12.0.1 - qs: 6.16.0 + qs: 6.16.1 stream-browserify: 3.0.0 transitivePeerDependencies: - debug @@ -10660,7 +10660,7 @@ snapshots: globals: 14.0.0 ignore: 5.3.2 import-fresh: 3.3.1 - js-yaml: 5.4.3 + js-yaml: 5.5.0 minimatch: 3.1.5 strip-json-comments: 3.1.1 transitivePeerDependencies: @@ -11308,7 +11308,7 @@ snapshots: camelcase: 5.3.1 find-up: 4.1.0 get-package-type: 0.1.0 - js-yaml: 5.4.3 + js-yaml: 5.5.0 resolve-from: 5.0.0 '@istanbuljs/schema@0.1.6': {} @@ -11805,7 +11805,7 @@ snapshots: hyperlinker: 1.0.0 indent-string: 4.0.0 is-wsl: 2.2.0 - js-yaml: 5.4.3 + js-yaml: 5.5.0 natural-orderby: 2.0.3 object-treeify: 1.1.33 password-prompt: 1.1.3 @@ -11835,7 +11835,7 @@ snapshots: hyperlinker: 1.0.0 indent-string: 4.0.0 is-wsl: 2.2.0 - js-yaml: 5.4.3 + js-yaml: 5.5.0 minimatch: 9.0.9 natural-orderby: 2.0.3 object-treeify: 1.1.33 @@ -13406,7 +13406,7 @@ snapshots: ajv@8.20.0: dependencies: fast-deep-equal: 3.1.3 - fast-uri: 4.2.1 + fast-uri: 4.2.3 json-schema-traverse: 1.0.0 require-from-string: 2.0.2 @@ -13471,6 +13471,8 @@ snapshots: argparse@2.0.1: {} + argparse@3.0.3: {} + array-back@1.0.4: dependencies: typical: 2.6.1 @@ -13754,7 +13756,7 @@ snapshots: http-errors: 2.0.1 iconv-lite: 0.4.24 on-finished: 2.4.1 - qs: 6.15.3 + qs: 6.16.1 raw-body: 2.5.3 type-is: 1.6.18 unpipe: 1.0.0 @@ -14020,7 +14022,7 @@ snapshots: hyperlinker: 1.0.0 indent-string: 4.0.0 is-wsl: 2.2.0 - js-yaml: 5.4.3 + js-yaml: 5.5.0 lodash: 4.18.1 natural-orderby: 2.0.3 object-treeify: 1.1.33 @@ -15543,7 +15545,7 @@ snapshots: parseurl: 1.3.3 path-to-regexp: 0.1.13 proxy-addr: 2.0.8 - qs: 6.15.3 + qs: 6.16.1 range-parser: 1.2.1 safe-buffer: 5.2.1 send: 0.19.2 @@ -15618,7 +15620,7 @@ snapshots: dependencies: fastest-levenshtein: 1.0.16 - fast-uri@4.2.1: {} + fast-uri@4.2.3: {} fastest-levenshtein@1.0.16: {} @@ -16524,7 +16526,7 @@ snapshots: istanbul-lib-coverage: 3.2.2 p-map: 3.0.0 rimraf: 3.0.2 - uuid: 14.0.2 + uuid: 14.0.3 istanbul-lib-processinfo@3.0.1: dependencies: @@ -17454,9 +17456,9 @@ snapshots: js-tokens@4.0.0: {} - js-yaml@5.4.3: + js-yaml@5.5.0: dependencies: - argparse: 2.0.1 + argparse: 3.0.3 js2xmlparser@4.0.2: dependencies: @@ -17949,7 +17951,7 @@ snapshots: find-up: 5.0.0 glob: 8.1.0 he: 1.2.0 - js-yaml: 5.4.3 + js-yaml: 5.5.0 log-symbols: 4.1.0 minimatch: 5.1.9 ms: 2.1.3 @@ -17972,7 +17974,7 @@ snapshots: glob: 10.5.0 he: 1.2.0 is-path-inside: 3.0.3 - js-yaml: 5.4.3 + js-yaml: 5.5.0 log-symbols: 4.1.0 minimatch: 9.0.9 ms: 2.1.3 @@ -18685,12 +18687,7 @@ snapshots: pure-rand@7.0.1: {} - qs@6.15.3: - dependencies: - es-define-property: 1.0.1 - side-channel: 1.1.1 - - qs@6.16.0: + qs@6.16.1: dependencies: es-define-property: 1.0.1 side-channel: 1.1.1 @@ -20129,7 +20126,7 @@ snapshots: utils-merge@1.0.1: {} - uuid@14.0.2: {} + uuid@14.0.3: {} v8-compile-cache-lib@3.0.1: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e24c507d5..c91d8152f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,11 +2,12 @@ packages: - 'packages/*' overrides: tmp: 0.2.7 - uuid: 14.0.2 + uuid: 14.0.3 lodash: 4.18.1 brace-expansion: 5.0.12 - js-yaml: 5.4.3 - fast-uri: 4.2.1 + js-yaml: 5.5.0 + fast-uri: 4.2.3 ws: 8.22.0 proxy-addr: 2.0.8 adm-zip: 0.6.1 + qs: 6.16.1