Skip to content

Commit

Permalink
Generate Typescript files where final source will be to get around is…
Browse files Browse the repository at this point in the history
…sue where sourcemap paths are not generated correctly by the plugin ezolenko/rollup-plugin-typescript2#407
  • Loading branch information
mwhirls committed Dec 8, 2023
1 parent 9d63371 commit e89d42d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rollup.config.mjs
Expand Up @@ -22,11 +22,11 @@ export default [
]
},
{
input: "dist/dts/index.d.ts",
input: "dist/index.d.ts",
output: [{ file: "dist/index.bundle.d.ts", format: "es" }],
plugins: [
dts(),
del({ hook: "buildEnd", targets: 'dist/dts' })
del({ hook: "buildEnd", targets: ['dist/*.d.ts', 'dist/internal'] })
]
}
];
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -5,7 +5,7 @@
"esModuleInterop": true,
"target": "es2015",
"declaration": true,
"outDir": "./dist/dts",
"outDir": "./dist",
"sourceMap": true,
"strict": true
},
Expand Down

0 comments on commit e89d42d

Please sign in to comment.