From 20e2b99a4af5552a43745d123b8a5877d388fcd3 Mon Sep 17 00:00:00 2001 From: Antoine de Maleprade Date: Fri, 15 Dec 2023 15:38:17 -0800 Subject: [PATCH] add missing type exports, prevent moving dist files --- package.json | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 180397b..75f082e 100644 --- a/package.json +++ b/package.json @@ -10,32 +10,34 @@ "async" ], "files": [ - "lib/*", - "types/*", - "core.mjs", - "core.mjs.map", - "zarr.mjs", - "zarr.mjs.map", - "zarr.cjs", - "zarr.cjs.map", - "zarr.umd.js", - "zarr.umd.js.map" + "./dist/*" ], "sideEffects": [ - "./zarr.mjs" + "./dist/zarr.mjs" ], - "main": "zarr.cjs", - "module": "zarr.mjs", - "umd:main": "zarr.umd.js", - "typings": "types/zarr.d.ts", + "main": "./dist/zarr.cjs", + "module": "./dist/zarr.mjs", + "umd:main": "./dist/zarr.umd.js", + "typings": "./dist/types/zarr.d.ts", "exports": { ".": { - "umd": "./zarr.umd.js", - "import": "./zarr.mjs", - "require": "./zarr.cjs" + "umd": "./dist/zarr.umd.js", + "import": "./dist/zarr.mjs", + "require": "./dist/zarr.cjs", + "types": "./dist/types/zarr.d.ts" }, "./core": { - "import": "./core.mjs" + "import": "./dist/core.mjs", + "types": "./dist/types/core/index.d.ts" + }, + "./types": { + "types": "./dist/types/types.d.ts" + }, + "./core/types": { + "types": "./dist/types/core/types.d.ts" + }, + "./storage/types": { + "types": "./dist/types/storage/types.d.ts" } }, "author": "Guido Zuidhof ", @@ -61,7 +63,6 @@ "test:prod": "npm run lint && npm run test -- --no-cache && npm run test:browser --no-cache", "generate-typedocs": "typedoc --out docs/typedocs --theme minimal --readme none src", "report-coverage": "cat ./coverage/lcov.info | coveralls", - "prepublishOnly": "npm run build && cp -r ./dist/* .", "postpublish": "git clean -fd" }, "devDependencies": {