BREAKING CHANGE(core): switch to esm
This commit is contained in:
parent
8eafd81c9f
commit
bf6d9ad777
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -2,28 +2,10 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "current file",
|
||||
"type": "node",
|
||||
"command": "npm test",
|
||||
"name": "Run npm test",
|
||||
"request": "launch",
|
||||
"args": [
|
||||
"${relativeFile}"
|
||||
],
|
||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
||||
"cwd": "${workspaceRoot}",
|
||||
"protocol": "inspector",
|
||||
"internalConsoleOptions": "openOnSessionStart"
|
||||
},
|
||||
{
|
||||
"name": "test.ts",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"args": [
|
||||
"test/test.ts"
|
||||
],
|
||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
||||
"cwd": "${workspaceRoot}",
|
||||
"protocol": "inspector",
|
||||
"internalConsoleOptions": "openOnSessionStart"
|
||||
"type": "node-terminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"githost": "gitlab.com",
|
||||
"gitscope": "pushrocks",
|
||||
"gitrepo": "smartsmtp",
|
||||
"shortDescription": "a module for handling smtp stuff",
|
||||
"description": "a module for handling smtp stuff",
|
||||
"npmPackagename": "@pushrocks/smartsmtp",
|
||||
"license": "MIT",
|
||||
"projectDomain": "push.rocks"
|
||||
|
25982
package-lock.json
generated
25982
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
package.json
19
package.json
@ -5,25 +5,24 @@
|
||||
"description": "a module for handling smtp stuff",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
"type": "module",
|
||||
"author": "Lossless GmbH",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(tstest test/)",
|
||||
"build": "(tsbuild --web)"
|
||||
"build": "(tsbuild --web --allowimplicitany)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.0.22",
|
||||
"@gitzone/tstest": "^1.0.44",
|
||||
"@pushrocks/qenv": "^4.0.10",
|
||||
"@pushrocks/tapbundle": "^3.0.7",
|
||||
"@types/node": "^15.12.2",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.15.0"
|
||||
"@gitzone/tsbuild": "^2.1.65",
|
||||
"@gitzone/tstest": "^1.0.73",
|
||||
"@pushrocks/qenv": "^5.0.2",
|
||||
"@pushrocks/tapbundle": "^5.0.4",
|
||||
"@types/node": "^18.6.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartmail": "^1.0.18",
|
||||
"@types/nodemailer": "^6.4.0",
|
||||
"nodemailer": "^6.4.11"
|
||||
"@types/nodemailer": "^6.4.5",
|
||||
"nodemailer": "^6.7.7"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartsmtp from '../ts/index';
|
||||
import * as smartsmtp from '../ts/index.js';
|
||||
|
||||
import { Qenv } from '@pushrocks/qenv';
|
||||
import * as smartmail from '@pushrocks/smartmail';
|
||||
@ -14,7 +14,7 @@ tap.test('should create a valid instance of Smartsmtp', async () => {
|
||||
smtpUser: testQenv.getEnvVarOnDemand('SMTP_USER'),
|
||||
smtpPassword: testQenv.getEnvVarOnDemand('SMTP_PASSWORD'),
|
||||
});
|
||||
expect(testSmartsmtp).to.be.instanceOf(smartsmtp.Smartsmtp);
|
||||
expect(testSmartsmtp).toBeInstanceOf(smartsmtp.Smartsmtp);
|
||||
});
|
||||
|
||||
tap.test('should send a message with empty body', async () => {
|
||||
|
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartsmtp',
|
||||
version: '3.0.0',
|
||||
description: 'a module for handling smtp stuff'
|
||||
}
|
@ -1 +1 @@
|
||||
export * from './smartsmtp.classes.smartsmtp';
|
||||
export * from './smartsmtp.classes.smartsmtp.js';
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartsmtp.plugins';
|
||||
import * as plugins from './smartsmtp.plugins.js';
|
||||
|
||||
export interface ISmartSmtpOptions {
|
||||
smtpServer: string;
|
||||
|
10
tsconfig.json
Normal file
10
tsconfig.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"experimentalDecorators": true,
|
||||
"useDefineForClassFields": false,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "nodenext",
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
17
tslint.json
17
tslint.json
@ -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"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user