Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 1a63e2f

Browse files
committed
fix: types generation
1 parent 65582b8 commit 1a63e2f

File tree

9 files changed

+375
-393
lines changed

9 files changed

+375
-393
lines changed

.github/workflows/npm-publish-main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: pnpm install --ignore-scripts --frozen-lockfile
4949

5050
- name: Build Library
51-
run: pnpm run build-emit --filter bootstrap-vue-next
51+
run: pnpm run build --filter bootstrap-vue-next
5252

5353
- name: Publish Main
5454
run: pnpm publish --tag latest --filter bootstrap-vue-next --access=public

.github/workflows/release-main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
if: ${{ steps.release.outputs.releases_created }}
6666

6767
- name: Build Library
68-
run: pnpm run build-emit --filter bootstrap-vue-next --filter @bootstrap-vue-next/nuxt
68+
run: pnpm run build --filter bootstrap-vue-next --filter @bootstrap-vue-next/nuxt
6969
if: ${{ steps.release.outputs.releases_created }}
7070

7171
- name: Publish Main

apps/docs/src/docs/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ We need to create a declaration file in the root of vue project.
342342

343343
import 'bootstrap-vue-next'
344344

345-
declare module 'bootstrap-vue-next/src/types' {
345+
declare module 'bootstrap-vue-next/dist/src/types' {
346346
export interface BaseColorVariant {
347347
purple: unknown // we use unknown type because it does not matter here
348348
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"prepare": "husky install && turbo run build",
2727
"dev": "turbo run dev --parallel",
2828
"build": "turbo run build",
29-
"build-emit": "turbo run build-emit",
3029
"lint": "turbo run lint",
3130
"test:lint": "turbo run test:lint",
3231
"test:unit": "turbo run test:unit",

packages/bootstrap-vue-next/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/bootstrap-vue-next/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
".": {
1111
"import": "./dist/bootstrap-vue-next.mjs",
1212
"require": "./dist/bootstrap-vue-next.umd.js",
13-
"types": "./src/BootstrapVue.d.ts"
13+
"types": "./dist/src/BootstrapVue.d.ts"
1414
},
1515
"./dist/bootstrap-vue-next.css": "./dist/bootstrap-vue-next.css",
1616
"./src/styles/styles.scss": "./src/styles/styles.scss"
@@ -23,7 +23,7 @@
2323
"!src/App.vue",
2424
"!src/main.ts"
2525
],
26-
"types": "./src/BootstrapVue.d.ts",
26+
"types": "./dist/src/BootstrapVue.d.ts",
2727
"private": false,
2828
"scripts": {
2929
"dev": "vite --port 5174",
@@ -32,7 +32,6 @@
3232
"type-check-emit": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --composite false",
3333
"preview": "vite preview",
3434
"build": "pnpm run type-check && pnpm run build-only",
35-
"build-emit": "pnpm run type-check-emit && pnpm run build-only",
3635
"lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore --fix src",
3736
"test:lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore src",
3837
"test:unit": "vitest",

packages/bootstrap-vue-next/vite.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ export default defineConfig({
3838
include: [/\.vue$/, /\.md$/],
3939
}),
4040
visualizer(),
41-
// dts({
42-
// tsConfigFilePath: './tsconfig.app.json',
43-
// }),
41+
dts({
42+
tsconfigPath: './tsconfig.app.json',
43+
outDir: './dist/src',
44+
}),
4445
],
4546

4647
server: {

0 commit comments

Comments
 (0)