Skip to content

Commit

Permalink
Build with @sveltejs/package
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jan 13, 2025
1 parent 43aa84c commit 2b52081
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ stats.html
.nx/workspace-data
.pnpm-store
.tsup
.svelte-kit

vite.config.js.timestamp-*
vite.config.ts.timestamp-*
20 changes: 10 additions & 10 deletions packages/svelte-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"homepage": "https://tanstack.com/form",
"scripts": {
"clean": "premove ./build ./coverage",
"clean": "premove ./dist ./coverage",
"test:eslint": "eslint ./src ./tests",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
Expand All @@ -23,18 +23,17 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "tsc -p tsconfig.build.json"
"build": "svelte-package --input ./src --output ./dist"
},
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.js",
"svelte": "./dist/index.js",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"import": "./dist/index.js"
},
"./package.json": "./package.json"
},
Expand All @@ -47,11 +46,12 @@
"@tanstack/form-core": "workspace:*"
},
"devDependencies": {
"svelte": "^5.16.1",
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "^4.0.4",
"premove": "^4.0.0",
"@sveltejs/vite-plugin-svelte": "^4.0.4"
"svelte": "^5.16.1"
},
"peerDependencies": {
"svelte": "^5.16.1"
"svelte": "^5.0.0"
}
}
65 changes: 63 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit 2b52081

Please sign in to comment.