diff --git a/.gitignore b/.gitignore index 74c19c9..bc3561e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -/dist/ +/dist/* +!/dist/*.d.ts /node_modules/ /package-lock.json /pnpm-lock.yaml diff --git a/types/index.d.ts b/dist/index.d.ts similarity index 100% rename from types/index.d.ts rename to dist/index.d.ts diff --git a/package.json b/package.json index 3f5b995..0619d24 100644 --- a/package.json +++ b/package.json @@ -11,17 +11,17 @@ "exports": { ".": { "import": "./dist/index.mjs", - "require": "./dist/index.cjs" + "require": "./dist/index.cjs", + "types": "./dist/index.d.ts" }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", - "types": "types/index.d.ts", + "types": "./dist/index.d.ts", "files": [ "*.md", - "dist", - "types" + "dist" ], "engines": { "node": "^12.17 || >=13.10"