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:
alt0
2022-10-18 01:31:40 +08:00
parent 0712391c7f
commit 88c8a408b5
19 changed files with 426 additions and 71 deletions

View 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
);

View 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,
};