Skip to content

Commit

Permalink
Remove unnecessary files and update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Sep 10, 2024
1 parent 786353c commit 41baa41
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 49 deletions.
30 changes: 0 additions & 30 deletions packages/nobel/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions packages/nobel/.prettierrc.json

This file was deleted.

19 changes: 14 additions & 5 deletions packages/nobel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,24 @@
"ui"
],
"type": "module",
"main": "./index.umd.cjs",
"module": "./index.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"require": "./index.umd.cjs",
"import": "./index.js"
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./*": "./*"
},
"typings": "types/index.d.ts",
"files": [
"dist",
"src",
"types",
"README.md"
],
"scripts": {
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
Expand All @@ -34,14 +41,16 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/"
},
"peerDependencies": {
"vue": "^3.5.3"
},
"dependencies": {
"@umbrajs/core": "workspace:*",
"@vueuse/components": "^11.0.3",
"@vueuse/core": "^11.0.3",
"colord": "^2.9.3",
"gsap": "^3.12.5",
"gsap-trial": "^3.12.5",
"vue": "^3.5.3",
"vue-router": "4"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/nobel/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",

"outDir": "dist",
"declarationDir": "types",
"allowJs": true,
"baseUrl": ".",
"rootDir": "src",
"paths": {
"@/*": ["./src/*"]
}
Expand Down
13 changes: 8 additions & 5 deletions packages/nobel/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ export default defineConfig({
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
build: {
lib: {
name: 'Lib',
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),
formats: ['es'],
},
minify: false,
},
})

0 comments on commit 41baa41

Please sign in to comment.