Skip to content

Commit

Permalink
fix: npm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Callum Cunha committed Jan 8, 2025
1 parent 85201f5 commit 7f2efe1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Exclude source code and development files
src/
tests/
node_modules/
pnpm-lock.yaml
package-lock.json
eslint.config.js
tsconfig.json
jsr.json

# Exclude build tools and configs
.vscode/
.idea/
*.log

# Exclude personal metadata
*.env
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"version": "1.0.0",
"description": "A vite plugin for auto-generating dedicated functions for RSPC per query, mutation, and subscription with typescript",
"type": "module",
"main": "dist/plugin.js",
"types": "dist/plugin.d.ts",
"scripts": {
"build": "tsc --emitDeclarationOnly",
"build": "tsc",
"prebuild": "rimraf dist",
"test": "vitest run",
"test:watch": "vitest",
Expand Down
11 changes: 4 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"outDir": "./dist",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"jsx": "preserve",
"jsxImportSource": "solid-js",
"resolveJsonModule": true,
"skipLibCheck": true,
"lib": [
Expand All @@ -21,14 +19,13 @@
"vite/client",
"node"
],
"noEmit": true,
"isolatedModules": true
"isolatedModules": true,
},
"include": [
"src/**.ts",
"src/**.d.ts"
"src"
],
"exclude": [
"node_modules"
"node_modules",
"dist"
]
}

0 comments on commit 7f2efe1

Please sign in to comment.