Skip to content

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.

chore: remove absolete module-resolve (#1991)

hehe54a30bbf20a8
diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml
index e1e11e7031..8cf7c5946a 100644
--- a/.github/actions/setup-node/action.yml
+++ b/.github/actions/setup-node/action.yml
@@ -33,10 +33,6 @@ runs:
scope: '@toeverything'
cache: 'yarn'
- - name: CI Module Resolve
- shell: bash
- run: node scripts/module-resolve/ci.cjs
-
- name: Expose yarn config as "$GITHUB_OUTPUT"
id: yarn-config
shell: bash
diff --git a/.gitignore b/.gitignore
index fa545a7863..a8c9432050 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,8 +58,6 @@ Thumbs.db
out/
storybook-static
-module-resolve.js
-module-resolve.cjs
/test-results/
/playwright-report/
/playwright/.cache/
diff --git a/scripts/module-resolve/ci.cjs b/scripts/module-resolve/ci.cjs
deleted file mode 100644
index 05b8b4c19f..0000000000
--- a/scripts/module-resolve/ci.cjs
+++ /dev/null
@@ -1,10 +0,0 @@
-const fs = require('fs');
-const path = require('path');
-
-const templatePath = path.resolve(__dirname, 'module-resolve.tmpl.js');
-const destinationPath = path.resolve(__dirname, '../../module-resolve.cjs');
-
-console.log('template path', templatePath);
-console.log('destination path', destinationPath);
-
-fs.copyFileSync(templatePath, destinationPath);
diff --git a/scripts/module-resolve/module-resolve.tmpl.js b/scripts/module-resolve/module-resolve.tmpl.js
deleted file mode 100644
index bc0ecaa6dc..0000000000
--- a/scripts/module-resolve/module-resolve.tmpl.js
+++ /dev/null
@@ -1,11 +0,0 @@
-function resolve(pkg) {
- if (pkg.dependencies && pkg.dependencies['@toeverything/pathfinder-logger']) {
- pkg.dependencies['@toeverything/pathfinder-logger'] = 'latest';
- }
-
- return pkg;
-}
-
-module.exports = {
- resolve,
-};