BREAKING CHANGE(core): switch to esm

This commit is contained in:
Philipp Kunz 2022-07-27 12:34:41 +02:00
parent 2de83b5afe
commit 014588b4af
9 changed files with 5884 additions and 18587 deletions

View File

@ -18,17 +18,6 @@ before_script:
# ====================
# security stage
# ====================
mirror:
stage: security
script:
- npmci git mirror
only:
- tags
tags:
- lossless
- docker
- notpriv
auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security
@ -100,10 +89,9 @@ codequality:
only:
- tags
script:
- npmci command npm install -g tslint typescript
- npmci command npm install -g typescript
- npmci npm prepare
- npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags:
- lossless
- docker
@ -123,11 +111,10 @@ trigger:
pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @gitzone/tsdoc
- npmci node install stable
- npmci npm prepare
- npmci npm install
- npmci command tsdoc
- npmci command npm run buildDocs
tags:
- lossless
- docker

24390
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,19 +10,17 @@
"scripts": {
"test": "(tstest test/)",
"build": "(tsbuild --web)",
"format": "(gitzone format)"
"buildDocs": "tsdoc"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.29",
"@gitzone/tstest": "^1.0.64",
"@pushrocks/tapbundle": "^4.0.8",
"@types/node": "^17.0.21",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
"@gitzone/tsbuild": "^2.1.63",
"@gitzone/tstest": "^1.0.72",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.6.1"
},
"dependencies": {
"@pushrocks/smarthash": "^2.1.10",
"@pushrocks/smartlog": "^2.0.44",
"@pushrocks/smarthash": "^3.0.1",
"@pushrocks/smartlog": "^3.0.1",
"@pushrocks/smartlog-interfaces": "^2.0.23"
},
"files": [
@ -39,5 +37,6 @@
],
"browserslist": [
"last 1 chrome versions"
]
}
],
"type": "module"
}

View File

@ -2,7 +2,7 @@ import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
import * as smartlog from '@pushrocks/smartlog';
import * as smarthash from '@pushrocks/smarthash';
import * as smartlogReceiver from '../ts/index';
import * as smartlogReceiver from '../ts/index.js';
let testReceiver: smartlogReceiver.SmartlogReceiver;
let testSmartlog = new smartlog.Smartlog({

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartlog-receiver',
version: '2.0.0',
description: 'a receiver for smartlog-destination-receiver'
}

View File

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

View File

@ -1,4 +1,4 @@
import * as plugins from './sl.receiver.plugins';
import * as plugins from './sl.receiver.plugins.js';
import {
ILogPackage,

10
tsconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true
}
}

View File

@ -1,17 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}