mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat: module resolve
feat: module resolve fix: logger repository fix: module resolve chore: add workflow for module resolve chore: update workflow env chore: update workflow install chore: update workflow env for npm token chore: test docker chore: update workflow env
This commit is contained in:
13
scripts/module-resolve/ci.js
Normal file
13
scripts/module-resolve/ci.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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');
|
||||
|
||||
console.log('template path', templatePath);
|
||||
console.log('destination path', destinationPath);
|
||||
|
||||
fs.copyFileSync(
|
||||
templatePath,
|
||||
destinationPath
|
||||
);
|
||||
11
scripts/module-resolve/module-resolve.tmpl.js
Normal file
11
scripts/module-resolve/module-resolve.tmpl.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function resolve(pkg) {
|
||||
if (pkg.dependencies && pkg.dependencies['@toeverything/pathfinder-logger']) {
|
||||
pkg.dependencies['@toeverything/pathfinder-logger'] = 'latest';
|
||||
}
|
||||
|
||||
return pkg;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
resolve,
|
||||
};
|
||||
Reference in New Issue
Block a user