Skip to content

Commit

Permalink
build: removed unused rollup, using vue-tsc to generate types
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Dec 20, 2023
1 parent 2a86404 commit 5484882
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 101 deletions.
79 changes: 0 additions & 79 deletions package-lock.json

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

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,24 @@
],
"main": "./dist/vue-components.umd.cjs",
"module": "./dist/vue-components.js",
"types": "./dist/main.d.ts",
"exports": {
".": {
"import": "./dist/vue-components.js",
"require": "./dist/vue-components.umd.cjs",
"types": "./dist/src/main.d.ts"
"types": "./dist/main.d.ts"
},
"./tailwind.config.ts": "./tailwind.config.ts",
"./vue-components.css": "./dist/main.css"
"./main.css": {
"import": "./dist/main.css",
"require": "./dist/main.css"
},
"./*": "./dist/*"
},
"scripts": {
"build": "run-p type-check \"build-only {@}\" --",
"build": "run-p build-types \"build-only {@}\" --",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"build-types": "vue-tsc -declaration --emitDeclarationOnly -p tsconfig.app.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/",
"storybook": "storybook dev -p 6006",
Expand Down Expand Up @@ -79,10 +84,8 @@
"prettier-plugin-tailwindcss": "^0.5.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup-plugin-typescript2": "^0.36.0",
"storybook": "^7.6.3",
"tailwindcss": "^3.3.6",
"tslib": "^2.6.2",
"typescript": "~5.2.0",
"vite": "^4.4.11",
"vue-tsc": "^1.8.19"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
}
Expand Down
17 changes: 1 addition & 16 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import typescript from 'rollup-plugin-typescript2'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down Expand Up @@ -35,21 +34,7 @@ export default defineConfig({
}
}
},
plugins: [
typescript({
check: false,
exclude: ['.storybook/*'],
tsconfig: resolve(__dirname, 'tsconfig.app.json'),
tsconfigOverride: {
compilerOptions: {
emitDeclarationOnly: true,
declaration: true,
declarationMap: true
}
}
}),
vue()
],
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
Expand Down

0 comments on commit 5484882

Please sign in to comment.