Skip to content

Commit

Permalink
v0.0.31. add typescript types to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpoll committed Sep 28, 2024
1 parent 47e7012 commit af7e381
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 19 deletions.
3 changes: 2 additions & 1 deletion packages/bluefish-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluefish-js",
"version": "0.0.30",
"version": "0.0.31",
"description": "A JS diagramming library",
"type": "module",
"files": [
Expand All @@ -25,6 +25,7 @@
"solid-devtools": "^0.29.2",
"typescript": "^5.3.3",
"vite": "^5.0.11",
"vite-plugin-dts": "^4.2.2",
"vite-plugin-solid": "^2.8.2"
},
"dependencies": {
Expand Down
4 changes: 4 additions & 0 deletions packages/bluefish-js/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig",
"exclude": ["node_modules", "dist", "examples", "experiments", "public", "src/stories", "vite.config.ts"]
}
2 changes: 2 additions & 0 deletions packages/bluefish-js/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import { resolve } from "path";
import dts from "vite-plugin-dts";

export default defineConfig(({ command }) => ({
publicDir: command === "serve" ? "public" : false,
Expand All @@ -17,4 +18,5 @@ export default defineConfig(({ command }) => ({
fileName: "index",
},
},
plugins: [dts({ tsconfigPath: "./tsconfig.build.json" })],
}));
3 changes: 2 additions & 1 deletion packages/bluefish-solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluefish-solid",
"version": "0.0.30",
"version": "0.0.31",
"description": "A SolidJS diagramming library",
"type": "module",
"files": [
Expand Down Expand Up @@ -56,6 +56,7 @@
"storybook-solidjs-vite": "^1.0.0-beta.2",
"typescript": "^5.3.3",
"vite": "^4.3.9",
"vite-plugin-dts": "^4.2.2",
"vite-plugin-solid": "^2.7.0"
},
"dependencies": {
Expand Down
10 changes: 1 addition & 9 deletions packages/bluefish-solid/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "./tsconfig",
"exclude": [
"node_modules",
"dist",
"examples",
"experiments",
"public",
"src/stories",
"vite.config.ts"
]
"exclude": ["node_modules", "dist", "examples", "experiments", "public", "src/stories", "vite.config.ts"]
}
2 changes: 2 additions & 0 deletions packages/bluefish-solid/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import { resolve } from "path";
import solidPlugin from "vite-plugin-solid";
import devtools from "solid-devtools/vite";
import dts from "vite-plugin-dts";

export default defineConfig(({ command }) => ({
publicDir: command === "serve" ? "public" : false,
Expand All @@ -10,6 +11,7 @@ export default defineConfig(({ command }) => ({
autoname: true,
}),
solidPlugin(),
dts({ tsconfigPath: "./tsconfig.build.json" }),
],
server: {
port: 3000,
Expand Down
Loading

0 comments on commit af7e381

Please sign in to comment.