fix(core): update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import plugins = require('./tools.plugins');
|
||||
import paths = require('./tools.paths');
|
||||
import { logger } from './tools.logging';
|
||||
import * as plugins from './tools.plugins.js';
|
||||
import * as paths from './tools.paths.js';
|
||||
import { logger } from './tools.logging.js';
|
||||
|
||||
const installExec = async (packageNames: string[]) => {
|
||||
const smartshellInstance = new plugins.smartshell.Smartshell({
|
||||
@@ -22,8 +22,8 @@ const installExec = async (packageNames: string[]) => {
|
||||
logger.log('ok', `installed tools successfully!`);
|
||||
};
|
||||
|
||||
const packageLibrary = plugins.smartfile.fs.toObjectSync(
|
||||
plugins.path.join(paths.assetsDir, 'package_library.json')
|
||||
const packageLibrary = JSON.parse(
|
||||
plugins.fs.readFileSync(plugins.path.join(paths.assetsDir, 'package_library.json'), 'utf8')
|
||||
);
|
||||
|
||||
export const install = async (packageSetArg: string) => {
|
||||
|
||||
Reference in New Issue
Block a user