BREANKING CHANGE(core): switch to esm

This commit is contained in:
2022-04-04 14:15:51 +02:00
parent abe1299203
commit 14e823fbfd
8 changed files with 14767 additions and 8767 deletions

View File

@ -1 +1 @@
export * from './smartarchive.classes.smartarchive';
export * from './smartarchive.classes.smartarchive.js';

View File

@ -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 {

View File

@ -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');

View File

@ -1,5 +1,5 @@
// node native scope
import path from 'path';
import * as path from 'path';
export { path };