BREANKING CHANGE(core): switch to esm
This commit is contained in:
@ -1 +1 @@
|
||||
export * from './smartarchive.classes.smartarchive';
|
||||
export * from './smartarchive.classes.smartarchive.js';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as plugins from './smartarchive.plugins';
|
||||
import * as paths from './smartarchive.paths';
|
||||
import * as plugins from './smartarchive.plugins.js';
|
||||
import * as paths from './smartarchive.paths.js';
|
||||
import { extract } from 'tar';
|
||||
|
||||
export class SmartArchive {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartarchive.plugins';
|
||||
import * as plugins from './smartarchive.plugins.js';
|
||||
|
||||
export const packageDir = plugins.path.join(__dirname, '../');
|
||||
export const nogitDir = plugins.path.join(__dirname, './.nogit');
|
||||
export const packageDir = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
|
||||
export const nogitDir = plugins.path.join(packageDir, './.nogit');
|
||||
|
@ -1,5 +1,5 @@
|
||||
// node native scope
|
||||
import path from 'path';
|
||||
import * as path from 'path';
|
||||
|
||||
export { path };
|
||||
|
||||
|
Reference in New Issue
Block a user