From 0f6d40c6314a32204a9308f9f0748399faf2f47e Mon Sep 17 00:00:00 2001 From: Simon Haugen Date: Sat, 13 Feb 2021 14:34:52 +0100 Subject: [PATCH] use "files" to only ship necessary files --- .npmignore | 5 ----- package.json | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 4950ae6..0000000 --- a/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -example -src -package-lock.json -tsconfig.json -.prettierrc \ No newline at end of file diff --git a/package.json b/package.json index 3007acf..2e5487a 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,9 @@ "url": "git+https://github.com/smnhgn/vite-plugin-package-version.git" }, "main": "dist/index.js", + "files": [ + "dist" + ], "scripts": { "clean": "rm -rf dist", "build": "npm run clean && tsup src/index.ts --dts",