Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): fixes issues with the npm release #227

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
lib/
src/coverage/
vite.config.ts
src/imgurClient/index.js
_site/
examples
dist
lib
*.md
index.js
index.js.map
Expand Down
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
*.code-workspace
.github
.vscode
.husky
dist
lib
examples
src
coverage
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
lib/
package-lock.json
.github
src/coverage/
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand All @@ -27,7 +25,6 @@ export default defineConfig({
'axios-cache-adapter': 'axiosCacheAdapter',
},
},
// external: ['imgur', 'imgur/common/types'],
},
},
})