From e671d26216e27bc0c6beb9f18bd25b4c1493b88d Mon Sep 17 00:00:00 2001 From: Ken Eucker Date: Sun, 21 Jan 2024 19:22:05 -0800 Subject: [PATCH] fix(build): fixes issues with the npm release --- .eslintignore | 2 +- .npmignore | 3 ++- .prettierignore | 1 - LICENSE => LICENSE.md | 0 package.json | 8 ++++++++ vite.config.ts | 5 +---- 6 files changed, 12 insertions(+), 7 deletions(-) rename LICENSE => LICENSE.md (100%) diff --git a/.eslintignore b/.eslintignore index e38e40d..64dc07e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,10 +1,10 @@ -lib/ src/coverage/ vite.config.ts src/imgurClient/index.js _site/ examples dist +lib *.md index.js index.js.map diff --git a/.npmignore b/.npmignore index a6aa39c..fa452cd 100644 --- a/.npmignore +++ b/.npmignore @@ -1,7 +1,8 @@ *.code-workspace .github +.vscode .husky -dist +lib examples src coverage diff --git a/.prettierignore b/.prettierignore index 7b7e096..6f2d708 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,4 @@ node_modules -lib/ package-lock.json .github src/coverage/ diff --git a/LICENSE b/LICENSE.md similarity index 100% rename from LICENSE rename to LICENSE.md diff --git a/package.json b/package.json index fcc702c..b8b2a48 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,14 @@ "types": "./dist/index.d.ts" } }, + "files": [ + "dist/**/*", + "package.json", + "LICENSE.md", + "readme.md", + "documentation.md", + "code_of_conduct.md" + ], "repository": { "type": "git", "url": "git+https://github.com/keneucker/biketag-api.git" diff --git a/vite.config.ts b/vite.config.ts index 1798d41..6ae0b91 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,9 +9,7 @@ export default defineConfig({ ssr: true, lib: { entry: path.resolve(__dirname, 'src/index.ts'), - name: 'BikeTag', - // formats: ['es', 'cjs'], - fileName: (format) => `biketag.${format}.js`, + name: 'BikeTagClient', }, rollupOptions: { plugins: [nodePolyfills()], @@ -27,7 +25,6 @@ export default defineConfig({ 'axios-cache-adapter': 'axiosCacheAdapter', }, }, - // external: ['imgur', 'imgur/common/types'], }, }, })