From c9bb8d3ebf6bbd4293266712535cdaf7702e2984 Mon Sep 17 00:00:00 2001 From: eyelidlessness Date: Wed, 8 Feb 2023 08:50:31 -0800 Subject: [PATCH] Fix: specify files included when publishing (#169) --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d452a3..227e017 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,10 @@ "main": "./dist/enketo-transformer.umd.cjs", "module": "./dist/enketo-transformer.js", "types": "./dist/src/transformer.d.ts", + "files": [ + "app.js", + "dist/**/*" + ], "exports": { ".": { "import": "./dist/enketo-transformer.js", @@ -32,7 +36,6 @@ "benchmarks": "vite-node ./test/benchmarks.ts", "build": "vite build && npm run tsc", "prepare": "npm run build", - "prepublishOnly": "sed -i '' -e 's/dist/_dist/' .gitignore", "start": "vite", "eslint-check": "eslint app.ts src/**/*.ts vite.config.ts test/**/*.ts", "eslint-fix": "eslint app.ts src/**/*.ts vite.config.ts test/**/*.ts --fix",