BREAKING CHANGE(core): switch to esm
This commit is contained in:
parent
703bfe7fe8
commit
0bb6bfbb37
21002
package-lock.json
generated
21002
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -5,6 +5,7 @@
|
|||||||
"description": "create an s3 endpoint that maps to a local directory",
|
"description": "create an s3 endpoint that maps to a local directory",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -12,11 +13,11 @@
|
|||||||
"build": "(tsbuild --web)"
|
"build": "(tsbuild --web)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.61",
|
||||||
"@gitzone/tsbundle": "^1.0.78",
|
"@gitzone/tsbundle": "^1.0.102",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.70",
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
"@pushrocks/tapbundle": "^5.0.3",
|
||||||
"@types/node": "^17.0.0",
|
"@types/node": "^17.0.24",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
@ -36,8 +37,9 @@
|
|||||||
"readme.md"
|
"readme.md"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartbucket": "^1.0.44",
|
"@pushrocks/smartbucket": "^2.0.1",
|
||||||
"@pushrocks/smartfile": "^9.0.3",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
|
"@pushrocks/smartpath": "^5.0.5",
|
||||||
"@types/s3rver": "^3.7.0",
|
"@types/s3rver": "^3.7.0",
|
||||||
"s3rver": "^3.7.1"
|
"s3rver": "^3.7.1"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { expect, tap } from '@pushrocks/tapbundle';
|
import { expect, tap } from '@pushrocks/tapbundle';
|
||||||
import * as plugins from './plugins';
|
import * as plugins from './plugins.js';
|
||||||
|
|
||||||
import * as smarts3 from '../ts/index';
|
import * as smarts3 from '../ts/index.js';
|
||||||
|
|
||||||
let testSmarts3Instance: smarts3.Smarts3;
|
let testSmarts3Instance: smarts3.Smarts3;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './smarts3.plugins';
|
import * as plugins from './smarts3.plugins.js';
|
||||||
import * as paths from './paths';
|
import * as paths from './paths.js';
|
||||||
|
|
||||||
export interface ISmarts3ContructorOptions {
|
export interface ISmarts3ContructorOptions {
|
||||||
port?: number;
|
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 nogitDir = plugins.path.join(packageDir, './.nogit');
|
||||||
|
|
||||||
export const bucketsDir = plugins.path.join(nogitDir, './bucketsDir');
|
export const bucketsDir = plugins.path.join(nogitDir, './bucketsDir');
|
||||||
|
@ -8,10 +8,12 @@ export {
|
|||||||
// pushrocks scope
|
// pushrocks scope
|
||||||
import * as smartbucket from '@pushrocks/smartbucket';
|
import * as smartbucket from '@pushrocks/smartbucket';
|
||||||
import * as smartfile from '@pushrocks/smartfile';
|
import * as smartfile from '@pushrocks/smartfile';
|
||||||
|
import * as smartpath from '@pushrocks/smartpath';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
smartbucket,
|
smartbucket,
|
||||||
smartfile,
|
smartfile,
|
||||||
|
smartpath
|
||||||
}
|
}
|
||||||
|
|
||||||
// thirdparty scope
|
// thirdparty scope
|
||||||
|
9
tsconfig.json
Normal file
9
tsconfig.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"useDefineForClassFields": false,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "ES2022",
|
||||||
|
"moduleResolution": "nodenext"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user