diff --git a/.npmignore b/.npmignore index e809c5e..b5b1070 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,7 @@ coverage node_modules src +!dist/src .* jest.config.js tsconfig.json diff --git a/package.json b/package.json index 0414b3b..85b5a6d 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "scripts": { "prepare": "rm -rf dist && npm run build", - "build": "npm run build:esm && npm run build:cjs && npm run build:declarations", + "build": "npm run build:declarations && npm run build:esm && npm run build:cjs", "build:declarations": "tsc && rm dist/src/*.spec.d.ts; rm -rf dist/examples && rm dist/src/testHelpers.d.ts", "build:esm": "esbuild src/index.ts --outfile=dist/index.mjs --format=esm --bundle --target=es2020 --sourcemap --minify", "build:cjs": "esbuild src/index.ts --outfile=dist/index.cjs --format=cjs --bundle --target=es2016 --sourcemap",