Skip to content

Commit eb478ac

Browse files
authored
Merge pull request #93 from privaloops/fix/ts6-baseurl-deprecation
fix(build): decouple DTS generation from tsup to avoid TS6.0 baseUrl error
2 parents 46076fa + 75acf43 commit eb478ac

6 files changed

Lines changed: 21 additions & 4 deletions

File tree

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"url": "https://github.com/privaloops/hevc.js/issues"
4949
},
5050
"scripts": {
51-
"build": "tsup && mv dist/transcode-worker.global.js dist/transcode-worker.js && mv dist/transcode-worker.global.js.map dist/transcode-worker.js.map && mkdir -p dist/wasm && cp wasm/hevc-decode.js wasm/hevc-decode.wasm dist/wasm/",
51+
"build": "tsup && tsc -p tsconfig.build.json && mv dist/transcode-worker.global.js dist/transcode-worker.js && mv dist/transcode-worker.global.js.map dist/transcode-worker.js.map && mkdir -p dist/wasm && cp wasm/hevc-decode.js wasm/hevc-decode.wasm dist/wasm/",
5252
"dev": "tsup --watch"
5353
},
5454
"dependencies": {

packages/core/tsconfig.build.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"emitDeclarationOnly": true,
5+
"noEmit": false
6+
},
7+
"include": ["src"],
8+
"exclude": ["src/transcode-worker.ts"]
9+
}

packages/core/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default defineConfig([
44
{
55
entry: ["src/index.ts"],
66
format: ["esm"],
7-
dts: true,
7+
dts: false,
88
clean: true,
99
sourcemap: true,
1010
outDir: "dist",

packages/dashjs-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"url": "https://github.com/privaloops/hevc.js/issues"
5050
},
5151
"scripts": {
52-
"build": "tsup",
52+
"build": "tsup && tsc -p tsconfig.build.json",
5353
"dev": "tsup --watch"
5454
},
5555
"dependencies": {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"emitDeclarationOnly": true,
5+
"noEmit": false
6+
},
7+
"include": ["src"]
8+
}

packages/dashjs-plugin/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineConfig } from "tsup";
33
export default defineConfig({
44
entry: ["src/index.ts"],
55
format: ["esm"],
6-
dts: true,
6+
dts: false,
77
clean: true,
88
sourcemap: true,
99
outDir: "dist",

0 commit comments

Comments
 (0)