Skip to content

Commit 40e4470

Browse files
author
Luca Forstner
authored
build(deno): Clean up build output (#9276)
1 parent cadeefe commit 40e4470

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

packages/deno/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build-types

packages/deno/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"build:types:tsc": "tsc -p tsconfig.types.json",
3636
"build:types:bundle": "rollup -c rollup.types.config.js",
3737
"circularDepCheck": "madge --circular src/index.ts",
38-
"clean": "rimraf build coverage",
38+
"clean": "rimraf build build-types coverage",
3939
"prefix": "yarn deno-types",
4040
"fix": "run-s fix:eslint fix:prettier",
4141
"fix:eslint": "eslint . --format stylish --fix",

packages/deno/rollup.types.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
// @ts-check
12
import dts from 'rollup-plugin-dts';
3+
import { defineConfig } from 'rollup';
24

3-
export default {
4-
input: './build/index.d.ts',
5+
export default defineConfig({
6+
input: './build-types/index.d.ts',
57
output: [{ file: 'build/index.d.ts', format: 'es' }],
68
plugins: [
79
dts({ respectExternal: true }),
@@ -14,4 +16,4 @@ export default {
1416
},
1517
},
1618
],
17-
};
19+
});

packages/deno/tsconfig.types.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"declaration": true,
5-
"declarationMap": true,
5+
"declarationMap": false,
66
"emitDeclarationOnly": true,
7-
"outDir": "build"
7+
"outDir": "build-types"
88
}
99
}

0 commit comments

Comments
 (0)