Skip to content

Commit

Permalink
feat: enable subpath imports (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasnix authored Nov 27, 2024
1 parent dc9006d commit 60571f7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kasnix/structured-objects",
"version": "1.0.3",
"version": "1.1.0",
"repository": {
"type": "git",
"url": "git+https://github.com/luckasnix/structured-objects.git"
Expand All @@ -11,6 +11,11 @@
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./object-graph": {
"types": "./dist/object-graph.d.ts",
"import": "./dist/object-graph.js",
"default": "./dist/object-graph.js"
}
},
"files": [
Expand All @@ -23,6 +28,9 @@
"graph"
],
"license": "MIT",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc && vite build",
"test": "vitest",
Expand All @@ -45,8 +53,5 @@
"vite": "5.4.10",
"vite-plugin-dts": "4.3.0",
"vitest": "2.1.4"
},
"publishConfig": {
"access": "public"
}
}
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ const viteConfig = defineConfig({
formats: ["es"],
fileName: "index",
},
rollupOptions: {
output: {
preserveModules: true,
entryFileNames: "[name].js",
},
},
},
plugins: [
dts({
include: ["src"],
rollupTypes: true,
}),
],
});
Expand Down

0 comments on commit 60571f7

Please sign in to comment.