Skip to content

Commit

Permalink
fix: build -> v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nivaldomartinez committed Dec 31, 2023
1 parent f5991ce commit dffb1f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
14 changes: 0 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "link-prevue",
"version": "2.0.0",
"version": "2.0.1",
"description": "Vue component for generate a link preview",
"main": "./dist/link-prevue.js",
"unpkg": "./dist/link-prevue.js",
Expand All @@ -11,7 +11,8 @@
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write src/"
"format": "prettier --write src/",
"clean": "rm -rf node_modules && rm -rf package-lock.json"
},
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ export default defineConfig({
entry: './src/index.js',
name: 'link-prevue',
fileName: 'link-prevue',
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'vue'
}
}
}
}
})

0 comments on commit dffb1f2

Please sign in to comment.