There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore: move ci.js to ci.cjs
alt00179ad567ea0
diff --git a/.github/workflows/build-test-version.yml b/.github/workflows/build-test-version.ymlindex 3862fefa32..9eb1aaf6d4 100644--- a/.github/workflows/build-test-version.yml+++ b/.github/workflows/build-test-version.yml@@ -36,7 +36,7 @@ jobs:scope: '@toeverything'cache: 'pnpm'- - run: node scripts/module-resolve/ci.js+ - run: node scripts/module-resolve/ci.cjs- name: Restore cacheuses: actions/cache@v3diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex bcc0166423..6d0c262639 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -244,7 +244,7 @@ jobs:scope: '@toeverything'cache: 'pnpm'- - run: node scripts/module-resolve/ci.js+ - run: node scripts/module-resolve/ci.cjs- name: Restore cacheuses: actions/cache@v3diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 94d64c8f46..00ce55b51c 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -23,7 +23,7 @@ jobs:scope: '@toeverything'cache: 'pnpm'- - run: node scripts/module-resolve/ci.js+ - run: node scripts/module-resolve/ci.cjs- name: Install dependenciesrun: pnpm install --no-frozen-lockfilediff --git a/.gitignore b/.gitignoreindex 24bb279128..f9333264dc 100644--- a/.gitignore+++ b/.gitignore@@ -48,6 +48,7 @@ Thumbs.dbout/module-resolve.js+module-resolve.cjs/test-results//playwright-report//playwright/.cache/diff --git a/.pnpmfile.cjs b/.pnpmfile.cjsindex 4873d9492c..d2541eb7e9 100644--- a/.pnpmfile.cjs+++ b/.pnpmfile.cjs@@ -1,11 +1,11 @@const fs = require('fs');function getCustomize() {- const customed = fs.existsSync('./module-resolve.js');+ const customed = fs.existsSync('./module-resolve.cjs');if (!customed) {return null;}- const script = require('./module-resolve.js');+ const script = require('./module-resolve.cjs');return script && script.resolve;}diff --git a/scripts/module-resolve/ci.js b/scripts/module-resolve/ci.cjssimilarity index 81%rename from scripts/module-resolve/ci.jsrename to scripts/module-resolve/ci.cjsindex 44c57a08d8..05b8b4c19f 100644--- a/scripts/module-resolve/ci.js+++ b/scripts/module-resolve/ci.cjs@@ -2,12 +2,9 @@ const fs = require('fs');const path = require('path');const templatePath = path.resolve(__dirname, 'module-resolve.tmpl.js');-const destinationPath = path.resolve(__dirname, '../../module-resolve.js');+const destinationPath = path.resolve(__dirname, '../../module-resolve.cjs');console.log('template path', templatePath);console.log('destination path', destinationPath);-fs.copyFileSync(- templatePath,- destinationPath-);+fs.copyFileSync(templatePath, destinationPath);