From ae2297d97db2efac81f8ccb440af0a414f260c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E7=86=B1?= Date: Sun, 29 Sep 2024 15:41:58 +0800 Subject: [PATCH] ci: remove cnpm sync workflow (#3624) --- .github/workflows/build.yml | 6 +- .github/workflows/ci-test.yml | 6 +- .github/workflows/playwright.yml | 3 +- .github/workflows/release.yml | 80 ++----------------- .github/workflows/sync-mirror.yml | 4 +- .github/workflows/sync-pro.yml | 3 +- common/shared/vite/index.js | 11 ++- common/shared/vite/obfuscator.js | 13 ++- package.json | 3 +- packages-experimental/debugger/package.json | 3 +- packages/core/package.json | 3 +- packages/data-validation/package.json | 3 +- packages/design/package.json | 3 +- packages/docs-drawing-ui/package.json | 3 +- packages/docs-drawing/package.json | 3 +- packages/docs-mention-ui/package.json | 3 +- packages/docs-ui/package.json | 3 +- packages/docs/package.json | 3 +- packages/drawing-ui/package.json | 3 +- packages/drawing/package.json | 3 +- packages/engine-formula/package.json | 3 +- packages/engine-numfmt/package.json | 3 +- packages/engine-render/package.json | 3 +- packages/facade/package.json | 3 +- packages/find-replace/package.json | 3 +- packages/network/package.json | 3 +- packages/rpc/package.json | 3 +- .../package.json | 3 +- .../package.json | 3 +- packages/sheets-data-validation/package.json | 3 +- packages/sheets-drawing-ui/package.json | 3 +- packages/sheets-drawing/package.json | 3 +- packages/sheets-filter-ui/package.json | 3 +- packages/sheets-filter/package.json | 3 +- packages/sheets-find-replace/package.json | 3 +- packages/sheets-formula/package.json | 3 +- packages/sheets-hyper-link-ui/package.json | 3 +- packages/sheets-hyper-link/package.json | 3 +- packages/sheets-numfmt/package.json | 3 +- packages/sheets-thread-comment/package.json | 3 +- packages/sheets-ui/package.json | 3 +- packages/sheets-zen-editor/package.json | 3 +- packages/sheets/package.json | 3 +- packages/slides-ui/package.json | 3 +- packages/slides/package.json | 3 +- packages/thread-comment-ui/package.json | 3 +- packages/thread-comment/package.json | 3 +- packages/ui/package.json | 3 +- packages/umd/package.json | 3 +- packages/uniscript/package.json | 3 +- turbo.json | 4 +- 51 files changed, 76 insertions(+), 180 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d47daff6e1c..551a98472a4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,11 @@ name: ๐Ÿ“ฆ Build on: push: - branches: [dev] + branches: + - dev pull_request: - branches: [dev] + branches: + - dev permissions: contents: read diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index dfe248bc80d..62ed804ca04 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -2,9 +2,11 @@ name: ๐Ÿงช CI Test on: push: - branches: [main, dev] + branches: + - dev pull_request: - branches: [main, dev] + branches: + - dev permissions: contents: read diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index d2ae7bb0b5b..7f1934c18ab 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -2,7 +2,8 @@ name: ๐ŸŽญ Playwright Tests on: pull_request: - branches: [dev] + branches: + - dev jobs: e2e-test: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 74a985f7b93..4a65e1bc32f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,56 +70,13 @@ jobs: - name: ๐Ÿ™ Publish run: | - if [[ ${{ needs.prepare.outputs.release_type }} == "alpha" ]]; then - pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r --no-git-checks - else + if [[ ${{ needs.prepare.outputs.release_type }} == "stable" ]]; then pnpm publish --access public -r --no-git-checks - fi - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - release-verdaccio: - needs: [prepare] - if: github.repository == 'dream-num/univer' - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: ${{ github.ref_name }} - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - run_install: false - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: ๐Ÿšš Install dependencies and build - run: | - pnpm install - pnpm build - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: ${{ secrets.VERDACCIO_URL }} - scope: '@univerjs' - - - name: ๐Ÿ™ Publish - run: | - if [[ ${{ needs.prepare.outputs.release_type }} == "alpha" ]]; then - pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r --no-git-checks else - pnpm publish --access public -r --no-git-checks + pnpm publish --access public --tag ${{ needs.prepare.outputs.release_type }} -r --no-git-checks fi env: - NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} build-demo: runs-on: ubuntu-latest @@ -149,29 +106,8 @@ jobs: id: vercel-demo with: vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.ORG_ID}} - vercel-project-id: ${{ secrets.PROJECT_ID}} - - sync-cnpm: - runs-on: ubuntu-latest - needs: [release-npm] - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: ./.github/actions/setup-node - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - name: ๐Ÿšš Install dependencies - run: pnpm install cnpm -g - - - name: ๐Ÿ™ Sync to cnpm - run: pnpm sync:cnpm + vercel-org-id: ${{ secrets.ORG_ID }} + vercel-project-id: ${{ secrets.PROJECT_ID }} build-storybook: runs-on: ubuntu-latest @@ -196,12 +132,12 @@ jobs: id: vercel-storybook with: vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.ORG_ID}} - vercel-project-id: ${{ secrets.PROJECT_ID_STORYBOOK}} + vercel-org-id: ${{ secrets.ORG_ID }} + vercel-project-id: ${{ secrets.PROJECT_ID_STORYBOOK }} vercel-args: --prod notify: - needs: [release-npm, release-verdaccio, build-demo, build-storybook] + needs: [release-npm, build-demo, build-storybook] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/sync-mirror.yml b/.github/workflows/sync-mirror.yml index 5b9bf66b71c..03af5717340 100644 --- a/.github/workflows/sync-mirror.yml +++ b/.github/workflows/sync-mirror.yml @@ -2,7 +2,9 @@ name: ๐Ÿ”ฎ Sync Mirror on: push: - branches: [main, dev] + branches: + - main + - dev jobs: sync: diff --git a/.github/workflows/sync-pro.yml b/.github/workflows/sync-pro.yml index 734fcaf0f0c..b4a79532f6b 100644 --- a/.github/workflows/sync-pro.yml +++ b/.github/workflows/sync-pro.yml @@ -2,7 +2,8 @@ name: ๐Ÿ”ซ Sync to Pro on: push: - branches: [dev] + branches: + - dev jobs: update-submodules: diff --git a/common/shared/vite/index.js b/common/shared/vite/index.js index 18eb19262a9..90640a78723 100644 --- a/common/shared/vite/index.js +++ b/common/shared/vite/index.js @@ -14,15 +14,15 @@ * limitations under the License. */ -const process = require('node:process'); const { resolve } = require('node:path'); +const process = require('node:process'); -const { defineConfig, mergeConfig } = require('vitest/config'); -const { default: dts } = require('vite-plugin-dts'); const react = require('@vitejs/plugin-react'); +const { default: dts } = require('vite-plugin-dts'); +const { defineConfig, mergeConfig } = require('vitest/config'); const { autoExternalizeDependency } = require('./auto-externalize-dependency-plugin'); -const { obfuscator } = require('./obfuscator'); const { buildPkg } = require('./build-pkg'); +const { obfuscator } = require('./obfuscator'); const { convertLibNameFromPackageName } = require('./utils'); /** @@ -78,8 +78,7 @@ function createViteConfig(overrideConfig, /** @type {IOptions} */ options) { ], define: { 'process.env.NODE_ENV': JSON.stringify(mode), - 'process.env.BUNDLE_TYPE': JSON.stringify(process.env.BUNDLE_TYPE ?? ''), - 'process.env.BUILD_TIMESTAMP': JSON.stringify(parseInt(Date.now() / 1000)), + 'process.env.BUILD_TIMESTAMP': JSON.stringify(Number.parseInt(Date.now() / 1000)), }, test: { css: { diff --git a/common/shared/vite/obfuscator.js b/common/shared/vite/obfuscator.js index 681e1d56057..03c6020c62e 100644 --- a/common/shared/vite/obfuscator.js +++ b/common/shared/vite/obfuscator.js @@ -14,7 +14,6 @@ * limitations under the License. */ -const process = require('node:process'); const JavaScriptObfuscator = require('javascript-obfuscator'); exports.obfuscator = function obfuscator() { @@ -22,13 +21,11 @@ exports.obfuscator = function obfuscator() { name: 'obfuscator', enforce: 'post', async generateBundle(_options, bundle) { - if (process.env.BUNDLE_TYPE === 'lite') { - for (const file in bundle) { - if (bundle[file].type === 'chunk' && /\.js$/.test(file)) { - const code = bundle[file].code; - const obfuscationResult = JavaScriptObfuscator.obfuscate(code); - bundle[file].code = obfuscationResult.getObfuscatedCode(); - } + for (const file in bundle) { + if (bundle[file].type === 'chunk' && /\.js$/.test(file)) { + const code = bundle[file].code; + const obfuscationResult = JavaScriptObfuscator.obfuscate(code); + bundle[file].code = obfuscationResult.getObfuscatedCode(); } } }, diff --git a/package.json b/package.json index 3dd122ac70e..81326544eff 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,7 @@ "lint:fix": "eslint . --fix", "storybook:dev": "pnpm --filter @univerjs/storybook dev:storybook", "storybook:build": "pnpm --filter @univerjs/storybook build:storybook", - "release": "release-it", - "sync:cnpm": "turbo sync:cnpm" + "release": "release-it" }, "devDependencies": { "@antfu/eslint-config": "3.7.3", diff --git a/packages-experimental/debugger/package.json b/packages-experimental/debugger/package.json index 719f1d0d9b7..8b038ea5a5e 100644 --- a/packages-experimental/debugger/package.json +++ b/packages-experimental/debugger/package.json @@ -51,8 +51,7 @@ ], "scripts": { "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/core/package.json b/packages/core/package.json index 782c9818e49..c2e1a2f47e1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/data-validation/package.json b/packages/data-validation/package.json index 90d88b32ac6..31aef04e113 100644 --- a/packages/data-validation/package.json +++ b/packages/data-validation/package.json @@ -56,8 +56,7 @@ "test": "vitest run", "test:watch": "vitest", "coverage": "vitest run --coverage", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/design/package.json b/packages/design/package.json index ee7e7018ff1..29218233940 100644 --- a/packages/design/package.json +++ b/packages/design/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "clsx": ">=2.0.0", diff --git a/packages/docs-drawing-ui/package.json b/packages/docs-drawing-ui/package.json index 178a3fd29fe..0dcd0773604 100644 --- a/packages/docs-drawing-ui/package.json +++ b/packages/docs-drawing-ui/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/docs-drawing/package.json b/packages/docs-drawing/package.json index 728eb4e8d83..b7b39a5f15f 100644 --- a/packages/docs-drawing/package.json +++ b/packages/docs-drawing/package.json @@ -54,8 +54,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/docs-mention-ui/package.json b/packages/docs-mention-ui/package.json index 61890b59e61..9e91017684c 100644 --- a/packages/docs-mention-ui/package.json +++ b/packages/docs-mention-ui/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/docs-ui/package.json b/packages/docs-ui/package.json index b992faeb176..09ec91b3789 100644 --- a/packages/docs-ui/package.json +++ b/packages/docs-ui/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/docs/package.json b/packages/docs/package.json index a10ebf08974..224217b2a16 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/drawing-ui/package.json b/packages/drawing-ui/package.json index 571146b37cd..37a398a2a83 100644 --- a/packages/drawing-ui/package.json +++ b/packages/drawing-ui/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/drawing/package.json b/packages/drawing/package.json index 40966fe52f8..3176bf1d23a 100644 --- a/packages/drawing/package.json +++ b/packages/drawing/package.json @@ -54,8 +54,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/engine-formula/package.json b/packages/engine-formula/package.json index 8c405b7e2b8..5089ea87ea1 100644 --- a/packages/engine-formula/package.json +++ b/packages/engine-formula/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/engine-numfmt/package.json b/packages/engine-numfmt/package.json index 9abbfea333c..d443dae9578 100644 --- a/packages/engine-numfmt/package.json +++ b/packages/engine-numfmt/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "devDependencies": { "@univerjs-infra/shared": "workspace:*", diff --git a/packages/engine-render/package.json b/packages/engine-render/package.json index ec6ef43d092..1600a087251 100644 --- a/packages/engine-render/package.json +++ b/packages/engine-render/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/facade/package.json b/packages/facade/package.json index 30a9c9df0a8..a7cb3c96fec 100644 --- a/packages/facade/package.json +++ b/packages/facade/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/find-replace/package.json b/packages/find-replace/package.json index 4d04853366c..6a848587a5e 100644 --- a/packages/find-replace/package.json +++ b/packages/find-replace/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/network/package.json b/packages/network/package.json index b419f482d79..f7d29778400 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -55,8 +55,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/rpc/package.json b/packages/rpc/package.json index 1b27bf6c125..c0ed1b13919 100644 --- a/packages/rpc/package.json +++ b/packages/rpc/package.json @@ -52,8 +52,7 @@ ], "scripts": { "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.json index 167822146d9..9d86ae4f9e6 100644 --- a/packages/sheets-conditional-formatting-ui/package.json +++ b/packages/sheets-conditional-formatting-ui/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-conditional-formatting/package.json b/packages/sheets-conditional-formatting/package.json index bbdd419bdea..9f90d53f38f 100644 --- a/packages/sheets-conditional-formatting/package.json +++ b/packages/sheets-conditional-formatting/package.json @@ -57,8 +57,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-data-validation/package.json b/packages/sheets-data-validation/package.json index 10b713f2b9d..71454d007d7 100644 --- a/packages/sheets-data-validation/package.json +++ b/packages/sheets-data-validation/package.json @@ -58,8 +58,7 @@ "test": "vitest run", "test:watch": "vitest", "coverage": "vitest run --coverage", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-drawing-ui/package.json b/packages/sheets-drawing-ui/package.json index 518877c92a2..0bdeb6f16b0 100644 --- a/packages/sheets-drawing-ui/package.json +++ b/packages/sheets-drawing-ui/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-drawing/package.json b/packages/sheets-drawing/package.json index de135cfc0d2..ff3c19727fa 100644 --- a/packages/sheets-drawing/package.json +++ b/packages/sheets-drawing/package.json @@ -54,8 +54,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-filter-ui/package.json b/packages/sheets-filter-ui/package.json index da72f6f22b8..2f2dcb96a2d 100644 --- a/packages/sheets-filter-ui/package.json +++ b/packages/sheets-filter-ui/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-filter/package.json b/packages/sheets-filter/package.json index 52e6b03402c..b62b6db432e 100644 --- a/packages/sheets-filter/package.json +++ b/packages/sheets-filter/package.json @@ -54,8 +54,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-find-replace/package.json b/packages/sheets-find-replace/package.json index 4b9e1aa4794..1796646a952 100644 --- a/packages/sheets-find-replace/package.json +++ b/packages/sheets-find-replace/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-formula/package.json b/packages/sheets-formula/package.json index 1ed4ee42d54..8cf8106f8b6 100644 --- a/packages/sheets-formula/package.json +++ b/packages/sheets-formula/package.json @@ -57,8 +57,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-hyper-link-ui/package.json b/packages/sheets-hyper-link-ui/package.json index 9d0de19eb45..aa2de56e7b7 100644 --- a/packages/sheets-hyper-link-ui/package.json +++ b/packages/sheets-hyper-link-ui/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-hyper-link/package.json b/packages/sheets-hyper-link/package.json index 8b5bb6019b4..594a6d493b9 100644 --- a/packages/sheets-hyper-link/package.json +++ b/packages/sheets-hyper-link/package.json @@ -54,8 +54,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-numfmt/package.json b/packages/sheets-numfmt/package.json index 69a81ec95ae..ed285254f3f 100644 --- a/packages/sheets-numfmt/package.json +++ b/packages/sheets-numfmt/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-thread-comment/package.json b/packages/sheets-thread-comment/package.json index 9dd30361678..d160c453b72 100644 --- a/packages/sheets-thread-comment/package.json +++ b/packages/sheets-thread-comment/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json index 9037ec1dc7b..3a954e68e16 100644 --- a/packages/sheets-ui/package.json +++ b/packages/sheets-ui/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-zen-editor/package.json b/packages/sheets-zen-editor/package.json index f9f23f90521..cf9c127f096 100644 --- a/packages/sheets-zen-editor/package.json +++ b/packages/sheets-zen-editor/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets/package.json b/packages/sheets/package.json index f3f2a68c91d..b0e2f38e714 100644 --- a/packages/sheets/package.json +++ b/packages/sheets/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.json index 12b16fef34e..ace6da54a19 100644 --- a/packages/slides-ui/package.json +++ b/packages/slides-ui/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/slides/package.json b/packages/slides/package.json index 34bb6c4f30c..764a1e80746 100644 --- a/packages/slides/package.json +++ b/packages/slides/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/thread-comment-ui/package.json b/packages/thread-comment-ui/package.json index 7ec40851054..8dfe972e8bf 100644 --- a/packages/thread-comment-ui/package.json +++ b/packages/thread-comment-ui/package.json @@ -56,8 +56,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/thread-comment/package.json b/packages/thread-comment/package.json index fc3c9b0f4a1..9153b4d7d8b 100644 --- a/packages/thread-comment/package.json +++ b/packages/thread-comment/package.json @@ -54,8 +54,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/ui/package.json b/packages/ui/package.json index d3b35af7bd6..222dbbfb4ae 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/umd/package.json b/packages/umd/package.json index 5467c7f463e..a0386cf54a4 100644 --- a/packages/umd/package.json +++ b/packages/umd/package.json @@ -34,8 +34,7 @@ "lib" ], "scripts": { - "build:umd": "node ./scripts/index.mjs", - "sync:cnpm": "cnpm sync" + "build:umd": "node ./scripts/index.mjs" }, "dependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/uniscript/package.json b/packages/uniscript/package.json index 6fb05322113..8474d3b9b59 100644 --- a/packages/uniscript/package.json +++ b/packages/uniscript/package.json @@ -58,8 +58,7 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint:types": "tsc --noEmit", - "build": "tsc && vite build", - "sync:cnpm": "cnpm sync" + "build": "tsc && vite build" }, "peerDependencies": { "@univerjs/core": "workspace:*", diff --git a/turbo.json b/turbo.json index ecd51d1cda6..38862ca6e12 100644 --- a/turbo.json +++ b/turbo.json @@ -20,8 +20,6 @@ "cache": false }, - "lint:types": {}, - - "sync:cnpm": {} + "lint:types": {} } }