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

Commit aa98f25

Browse files
authored
Merge pull request #263 from asigloo/bugfix/261-declaration-files-are-not-being-adde
fix: dts generation on dist
2 parents 549560c + 89195b4 commit aa98f25

File tree

7 files changed

+44
-37
lines changed

7 files changed

+44
-37
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ jobs:
1919
run: yarn
2020
- name: Build Library
2121
run: yarn build
22+
- name: Build Types Declarations
23+
run: yarn build:dts

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
run: yarn
2020
- name: Build Library
2121
run: yarn build
22+
- name: Build Types Declarations
23+
run: yarn build:dts
2224
- name: Release
2325
env:
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ vue.config.js
1111
postcss.config.js
1212
api-extractor.json
1313
renovate.json
14-
rollup.config.js
14+
vite.config.ts
15+
vite-lib.config.ts
1516
tailwind.config.js
1617
.prettierrc
1718
.git
@@ -30,3 +31,4 @@ yarn.lock
3031
/demos
3132
/src
3233
.github
34+
cypress.json

api-extractor.json

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
{
2-
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33

4-
"mainEntryPointFilePath": "./dist/src/index.d.ts",
4+
"mainEntryPointFilePath": "./src/index.d.ts",
55

6-
"apiReport": {
7-
"enabled": true,
8-
"reportFolder": "<projectFolder>/temp/"
9-
},
6+
"apiReport": {
7+
"enabled": true,
8+
"reportFolder": "<projectFolder>/temp/"
9+
},
1010

11-
"docModel": {
12-
"enabled": true
13-
},
11+
"docModel": {
12+
"enabled": true
13+
},
1414

15-
"dtsRollup": {
16-
"enabled": true,
17-
"untrimmedFilePath": "./dist/as-dynamic-forms.d.ts"
18-
},
15+
"dtsRollup": {
16+
"enabled": true,
17+
"untrimmedFilePath": "./dist/as-dynamic-forms.d.ts"
18+
},
1919

20-
"tsdocMetadata": {
21-
"enabled": false
20+
"tsdocMetadata": {
21+
"enabled": false
22+
},
23+
24+
"messages": {
25+
"compilerMessageReporting": {
26+
"default": {
27+
"logLevel": "warning"
28+
}
2229
},
2330

24-
"messages": {
25-
"compilerMessageReporting": {
26-
"default": {
27-
"logLevel": "warning"
28-
}
31+
"extractorMessageReporting": {
32+
"default": {
33+
"logLevel": "warning",
34+
"addToApiReportFile": true
2935
},
3036

31-
"extractorMessageReporting": {
32-
"default": {
33-
"logLevel": "warning",
34-
"addToApiReportFile": true
35-
},
36-
37-
"ae-missing-release-tag": {
38-
"logLevel": "none"
39-
}
40-
},
37+
"ae-missing-release-tag": {
38+
"logLevel": "none"
39+
}
40+
},
4141

42-
"tsdocMessageReporting": {
43-
"default": {
44-
"logLevel": "warning"
45-
}
42+
"tsdocMessageReporting": {
43+
"default": {
44+
"logLevel": "warning"
4645
}
4746
}
4847
}
48+
}

src/components/dynamic-form/DynamicForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<script lang="ts">
3939
import { defineComponent, PropType, watch } from 'vue';
40-
import { useDynamicForms, DynamicForm } from '/@/';
40+
import { useDynamicForms, DynamicForm } from '/@/index';
4141
import { useDynamicForm } from '/@/composables/useDynamicForm';
4242
4343
const props = {

tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"strict": true,
1717
"noUnusedLocals": true,
1818
"strictNullChecks": false,
19+
"declaration": true,
20+
"declarationMap": true,
1921
"rootDir": ".",
2022
"types": ["vite/client", "jest", "node", "@types/jest"],
2123
"paths": {

vite-lib.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineConfig } from 'vite';
22
import vue from '@vitejs/plugin-vue';
33
import copy from 'rollup-plugin-copy';
4-
import dts from 'vite-plugin-dts';
54

65
const { resolve } = require('path');
76
import pkg from './package.json';

0 commit comments

Comments
 (0)