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

Commit 737d446

Browse files
authored
Merge pull request bootstrap-vue-next#1223 from VividLemon/nuxt
fix: types generation
2 parents 4f8f4ea + fa67565 commit 737d446

File tree

12 files changed

+372
-400
lines changed

12 files changed

+372
-400
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/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
},
1313
"devDependencies": {
1414
"@iconify-json/bi": "^1.1.17",
15-
"@iconify-json/simple-icons": "^1.1.57",
15+
"@iconify-json/simple-icons": "^1.1.58",
1616
"@rushstack/eslint-patch": "^1.3.2",
1717
"@tsconfig/node20": "^1.0.1",
18-
"@types/node": "^20.3.1",
18+
"@types/node": "^20.3.2",
1919
"@vue/eslint-config-prettier": "^7.1.0",
2020
"@vue/eslint-config-typescript": "^11.0.3",
2121
"@vue/tsconfig": "^0.4.0",
@@ -25,7 +25,7 @@
2525
"cross-env": "^7.0.3",
2626
"eslint": "^8.43.0",
2727
"eslint-define-config": "^1.21.0",
28-
"eslint-plugin-vue": "^9.15.0",
28+
"eslint-plugin-vue": "^9.15.1",
2929
"prettier": "^2.8.8",
3030
"typescript": "^5.1.3",
3131
"unplugin-icons": "^0.16.3",

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
}

apps/playground/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
},
1616
"devDependencies": {
1717
"@tsconfig/node20": "^1.0.1",
18-
"@types/node": "^20.3.1",
18+
"@types/node": "^20.3.2",
1919
"@vitejs/plugin-vue": "^4.2.3",
2020
"@vue/tsconfig": "^0.4.0",
2121
"bootstrap-styles": "^5.3.0",
2222
"rollup-plugin-visualizer": "^5.9.2",
2323
"typescript": "^5.1.3",
2424
"vite": "^4.3.9",
25-
"vue-tsc": "^1.8.1"
25+
"vue-tsc": "^1.8.2"
2626
},
2727
"lint-staged": {
2828
"*.{js,ts,vue}": "eslint --cache --fix",

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: 7 additions & 8 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",
@@ -54,7 +53,7 @@
5453
"@floating-ui/core": "^1.3.1",
5554
"@rushstack/eslint-patch": "^1.3.2",
5655
"@tsconfig/node20": "^1.0.1",
57-
"@types/node": "^20.3.1",
56+
"@types/node": "^20.3.2",
5857
"@vitejs/plugin-vue": "^4.2.3",
5958
"@vitest/coverage-c8": "^0.32.2",
6059
"@vue/compiler-dom": "^3.3.4",
@@ -70,20 +69,20 @@
7069
"csstype": "^3.1.2",
7170
"eslint": "^8.43.0",
7271
"eslint-define-config": "^1.21.0",
73-
"eslint-plugin-vue": "^9.15.0",
72+
"eslint-plugin-vue": "^9.15.1",
7473
"happy-dom": "^9.20.3",
7574
"jsdom": "^22.1.0",
7675
"prettier": "^2.8.8",
77-
"rollup": "^3.25.1",
76+
"rollup": "^3.25.3",
7877
"rollup-plugin-visualizer": "^5.9.2",
7978
"sass": "^1.63.6",
8079
"typescript": "^5.1.3",
8180
"vite": "^4.3.9",
82-
"vite-plugin-dts": "^2.3.0",
81+
"vite-plugin-dts": "^3.0.0-beta.2",
8382
"vitest": "^0.32.2",
8483
"vue": "^3.3.4",
8584
"vue-router": "^4.2.2",
86-
"vue-tsc": "^1.8.1"
85+
"vue-tsc": "^1.8.2"
8786
},
8887
"repository": {
8988
"type": "git",

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: {

packages/nuxt/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"prepack": "nuxt-module-build",
2525
"dev": "nuxi dev playground --port 3030",
2626
"build": "pnpm run dev:build && pnpm run prepack",
27-
"build-emit": "pnpm run build",
2827
"dev:build": "nuxi build playground",
2928
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
3029
"lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore --fix",
@@ -34,20 +33,20 @@
3433
"bootstrap-vue-next": "workspace:^"
3534
},
3635
"dependencies": {
37-
"@nuxt/kit": "~3.5.2"
36+
"@nuxt/kit": "^3.6.1"
3837
},
3938
"devDependencies": {
4039
"@nuxt/eslint-config": "^0.1.1",
4140
"@nuxt/module-builder": "^0.4.0",
42-
"@nuxt/schema": "~3.5.2",
41+
"@nuxt/schema": "^3.6.1",
4342
"@rushstack/eslint-patch": "^1.3.2",
4443
"@vue/eslint-config-prettier": "^7.1.0",
4544
"bootstrap-vue-next": "workspace:^",
4645
"eslint": "^8.43.0",
4746
"eslint-define-config": "^1.21.0",
48-
"nuxt": "~3.5.2",
47+
"nuxt": "^3.6.1",
4948
"prettier": "^2.8.8",
50-
"unimport": "^3.0.8",
49+
"unimport": "^3.0.10",
5150
"vue": "^3.3.4"
5251
},
5352
"repository": {

0 commit comments

Comments
 (0)