BREAKING CHANGE(core): switch to esm

This commit is contained in:
Philipp Kunz 2022-08-02 17:05:30 +02:00
parent 24a76cdcb6
commit ca7a3e4d71
9 changed files with 7623 additions and 18120 deletions

4
.snyk
View File

@ -1,4 +0,0 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.12.0
ignore: {}
patch: {}

25685
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@
"description": "an unofficial abstraction package for sentry.io",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"type": "module",
"author": "Lossless GmbH",
"license": "MIT",
"scripts": {
@ -12,16 +13,16 @@
"build": "(tsbuild --web)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tstest": "^1.0.54",
"@pushrocks/tapbundle": "^3.2.14",
"@types/node": "^16.6.1",
"@gitzone/tsbuild": "^2.1.63",
"@gitzone/tstest": "^1.0.72",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.6.3",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@pushrocks/qenv": "^4.0.10",
"@sentry/node": "^6.11.0"
"@pushrocks/qenv": "^5.0.2",
"@sentry/node": "^7.8.1"
},
"files": [
"ts/**/*",

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as sentry from '../ts/index';
import * as sentry from '../ts/index.js';
import { Qenv } from '@pushrocks/qenv';

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@mojoio/sentry',
version: '2.0.0',
description: 'an unofficial abstraction package for sentry.io'
}

View File

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

View File

@ -1,4 +1,4 @@
import * as plugins from './sentry.plugins';
import * as plugins from './sentry.plugins.js';
/**
* the constructor options for Sentry

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"
}