context外部导入更新

This commit is contained in:
付宇豪 2023-05-18 08:30:39 +00:00
parent 702ae498fc
commit 70ed72d66f

View File

@ -2,7 +2,8 @@ const path = require('path')
const fs = require('fs-extra')
const execa = require('execa')
const logger = require('./utils/logger')
const { Configuration, Project , Workspace } = require('@yarnpkg/core');
const { npath } = require('@yarnpkg/fslib');
function createContext () {
const rootPath = fs.realpathSync(process.cwd())
const rootPkgPath = path.resolve(rootPath, 'package.json')