BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-04-14 10:36:24 +02:00
parent 703bfe7fe8
commit 0bb6bfbb37
7 changed files with 6885 additions and 14184 deletions

View File

@ -1,5 +1,5 @@
import * as plugins from './smarts3.plugins';
import * as paths from './paths';
import * as plugins from './smarts3.plugins.js';
import * as paths from './paths.js';
export interface ISmarts3ContructorOptions {
port?: number;

View File

@ -1,6 +1,6 @@
import * as plugins from './smarts3.plugins';
import * as plugins from './smarts3.plugins.js';
export const packageDir = plugins.path.join(__dirname, '../');
export const packageDir = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
export const nogitDir = plugins.path.join(packageDir, './.nogit');
export const bucketsDir = plugins.path.join(nogitDir, './bucketsDir');

View File

@ -8,10 +8,12 @@ export {
// pushrocks scope
import * as smartbucket from '@pushrocks/smartbucket';
import * as smartfile from '@pushrocks/smartfile';
import * as smartpath from '@pushrocks/smartpath';
export {
smartbucket,
smartfile,
smartpath
}
// thirdparty scope