BREAKING CHANGE(core): switch to esm
This commit is contained in:
@ -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;
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user