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

Commit 9537680

Browse files
committed
fix: types generation
1 parent a7acb09 commit 9537680

File tree

8 files changed

+85
-72
lines changed

8 files changed

+85
-72
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 --filter bootstrap-vue-next
51+
run: pnpm run build-emit --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 --filter bootstrap-vue-next --filter @bootstrap-vue-next/nuxt
68+
run: pnpm run build-emit --filter bootstrap-vue-next && pnpm run build --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/dist/src/types' {
345+
declare module 'bootstrap-vue-next/src/types' {
346346
export interface BaseColorVariant {
347347
purple: unknown // we use unknown type because it does not matter here
348348
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
"npm": ">=7.0.0",
4747
"node": ">=14.0.0"
4848
},
49-
"packageManager": "[email protected].0"
49+
"packageManager": "[email protected].3"
5050
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dts in src
2+
3+
src/**/*.d.ts

packages/bootstrap-vue-next/package.json

Lines changed: 3 additions & 2 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": "./dist/src/BootstrapVue.d.ts"
13+
"types": "./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": "./dist/src/BootstrapVue.d.ts",
26+
"types": "./src/BootstrapVue.d.ts",
2727
"private": false,
2828
"scripts": {
2929
"dev": "vite --port 5174",
@@ -32,6 +32,7 @@
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",
3536
"lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore --fix src",
3637
"test:lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore src",
3738
"test:unit": "vitest",

packages/nuxt/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
3333
"bootstrap-vue-next": "workspace:^"
3434
},
3535
"dependencies": {
36-
"@nuxt/kit": "3.6.0"
36+
"@nuxt/kit": "~3.5.2"
3737
},
3838
"devDependencies": {
3939
"@nuxt/eslint-config": "^0.1.1",
4040
"@nuxt/module-builder": "^0.4.0",
41-
"@nuxt/schema": "3.6.0",
41+
"@nuxt/schema": "~3.5.2",
4242
"@rushstack/eslint-patch": "^1.3.2",
4343
"@vue/eslint-config-prettier": "^7.1.0",
4444
"bootstrap-vue-next": "workspace:^",
4545
"eslint": "^8.43.0",
4646
"eslint-define-config": "^1.21.0",
47-
"nuxt": "3.6.0",
47+
"nuxt": "~3.5.2",
4848
"prettier": "^2.8.8",
4949
"unimport": "^3.0.8",
5050
"vue": "^3.3.4"

pnpm-lock.yaml

Lines changed: 72 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)