diff --git a/.gitignore b/.gitignore index 199d2d0..b70a6f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /node_modules/ -/distribution/ +/build/ /data/ diff --git a/package.json b/package.json index 150719f..dea80a8 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,6 @@ "name": "kill-the-newsletter", "version": "1.0.1", "description": "Convert email newsletters into Atom feeds", - "main": "distribution/index.js", - "types": "distribution/index.d.ts", - "bin": { - "kill-the-newsletter": "distribution/index.js" - }, - "repository": "leafac/kill-the-newsletter", "keywords": [ "newsletter", "atom feeds", @@ -15,16 +9,18 @@ "self-hosted", "web application" ], - "author": "Leandro Facchinetti (https://leafac.com)", - "license": "MIT", + "homepage": "https://kill-the-newsletter.com", + "repository": "https://github.com/leafac/kill-the-newsletter", "bugs": "https://github.com/leafac/kill-the-newsletter/issues", - "homepage": "https://github.com/leafac/kill-the-newsletter", "funding": [ "https://patreon.com/leafac", "https://paypal.me/LeandroFacchinettiEU", "https://github.com/sponsors/leafac", "https://btc.com/34KJBgtaFYMtDqpSgMayw9qiKWg2GQXA9M" ], + "author": "Leandro Facchinetti (https://leafac.com)", + "license": "MIT", + "bin": "./build/index.mjs", "scripts": { "start": "node-dev source/index.ts", "test": "prettier --check \"source/**/*\" --end-of-line auto && jest", @@ -60,9 +56,5 @@ "ts-jest": "^27.0.5", "ts-node": "^9.1.1", "typescript": "^4.2.3" - }, - "jest": { - "preset": "ts-jest", - "rootDir": "source" } } diff --git a/tsconfig.json b/tsconfig.json index 03f71e3..6214296 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,13 @@ { "compilerOptions": { "rootDir": "./source/", - "outDir": "./distribution/", + "outDir": "./build/", "module": "ESNext", "moduleResolution": "NodeNext", + "esModuleInterop": true, "lib": ["ESNext", "DOM", "DOM.Iterable"], "skipLibCheck": true, - "allowSyntheticDefaultImports": true, "target": "ESNext", "declaration": true,