diff --git a/.gitignore b/.gitignore index 601f59b..d0f2a6b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,11 +3,4 @@ npm-debug.log web-ext-artifacts .env test/extension/manifest.json -index.js -index.d.ts -errors.js -errors.d.ts -types.js -types.d.ts -zip-dir.js -zip-dir.d.ts +distribution diff --git a/package.json b/package.json index 2e07a72..f5f8fbe 100644 --- a/package.json +++ b/package.json @@ -20,13 +20,10 @@ "Federico Brigante (https://fregante.com)" ], "type": "module", - "exports": "./index.js", - "types": "./index.d.ts", + "exports": "./distribution/index.js", + "types": "./distribution/index.d.ts", "files": [ - "index.js", - "index.d.ts", - "zip-dir.js", - "zip-dir.d.ts" + "distribution" ], "scripts": { "prebundle": "dot-json test/extension/manifest.json version $(utc-version)", diff --git a/test/live-test.js b/test/live-test.js index aa7c153..04ee2bd 100644 --- a/test/live-test.js +++ b/test/live-test.js @@ -1,6 +1,6 @@ import fs from 'node:fs'; import process from 'node:process'; -import chromeWebstoreUpload from '../index.js'; +import chromeWebstoreUpload from '../distribution/index.js'; const myZipFile = fs.createReadStream('./web-ext-artifacts/live-test.zip'); diff --git a/tsconfig.json b/tsconfig.json index 35efa95..bc0da1f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,6 @@ { "extends": "@sindresorhus/tsconfig", - "compilerOptions": { - "outDir": ".", - }, - "files": [ - "source/index.ts" + "include": [ + "source" ] }