Skip to content

Commit

Permalink
fix: .d.ts type alias @/ -> ./
Browse files Browse the repository at this point in the history
  • Loading branch information
kristof-mattei committed Aug 27, 2024
1 parent 7f34739 commit c1fd601
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
"author": "actions-rs-plus",
"license": "MIT",
"description": "Core functionality for the @actions-rs-plus repos",
"main": "dist/core.js",
"typings": "dist/core",
"type": "module",
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts"
],
"main": "dist/core.js",
"types": "dist/core.d.ts",
"files": ["dist"],
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
Expand Down
6 changes: 4 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ export default defineConfig(() => {
},
rollupOptions: {
output: {
esModule: true,
preserveModules: true,
},
},
},
resolve: { alias: { "@/": path.resolve("src/") } },

plugins: [
viteTsConfigPaths(),
dts({
insertTypesEntry: true,
entryRoot: "./src",
exclude: ["test.setup.ts", "vite.config.ts"],
exclude: ["test.setup.ts", "vite.config.ts", "src/tests/**"],
}),
],

Expand Down

0 comments on commit c1fd601

Please sign in to comment.