Skip to content

Commit

Permalink
common-ui: Try to fix build error while building container image
Browse files Browse the repository at this point in the history
Move content of `extends.d.ts` to `index.ts`
  • Loading branch information
somnisomni committed Jul 24, 2024
1 parent 9aee055 commit fb5e7d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/CommonUI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "pnpm clean && run-p type-check \"build-only {@}\" --",
"clean": "rimraf ./dist",
"build-only": "vite build && vue-tsc -p tsconfig.app.json --emitDeclarationOnly",
"build-only": "vite build && vue-tsc -p tsconfig.app.json --declaration --emitDeclarationOnly",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"lint": "eslint ."
},
Expand Down
7 changes: 0 additions & 7 deletions packages/CommonUI/src/extends.d.ts

This file was deleted.

6 changes: 6 additions & 0 deletions packages/CommonUI/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import type { App } from "vue";
import * as C from "./components";
import "@/styles/styles.scss";

declare module "vue" {
interface ComponentCustomProperties {
$imageUrlResolver: (rawPath?: string | null) => string | null;
}
}

export interface ICommonUIOptions {
imageUrlResolver: (rawPath?: string | null) => string | null;
}
Expand Down
4 changes: 3 additions & 1 deletion packages/CommonUI/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"compilerOptions": {
"declaration": true,
"noEmit": false,
"noEmitOnError": false,
"baseUrl": ".",
"outDir": "./dist",
"declarationDir": "./dist",
Expand All @@ -15,5 +16,6 @@
"@/*": ["./src/*"]
},
"experimentalDecorators": true
}
},
"ts-node": { "files": true }
}

0 comments on commit fb5e7d6

Please sign in to comment.