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

Commit

Permalink
Merge pull request #263 from asigloo/bugfix/261-declaration-files-are…
Browse files Browse the repository at this point in the history
…-not-being-adde

fix: dts generation on dist
  • Loading branch information
alvarosabu authored Jul 13, 2021
2 parents 549560c + 89195b4 commit aa98f25
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ jobs:
run: yarn
- name: Build Library
run: yarn build
- name: Build Types Declarations
run: yarn build:dts
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: yarn
- name: Build Library
run: yarn build
- name: Build Types Declarations
run: yarn build:dts
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ vue.config.js
postcss.config.js
api-extractor.json
renovate.json
rollup.config.js
vite.config.ts
vite-lib.config.ts
tailwind.config.js
.prettierrc
.git
Expand All @@ -30,3 +31,4 @@ yarn.lock
/demos
/src
.github
cypress.json
68 changes: 34 additions & 34 deletions api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",

"mainEntryPointFilePath": "./dist/src/index.d.ts",
"mainEntryPointFilePath": "./src/index.d.ts",

"apiReport": {
"enabled": true,
"reportFolder": "<projectFolder>/temp/"
},
"apiReport": {
"enabled": true,
"reportFolder": "<projectFolder>/temp/"
},

"docModel": {
"enabled": true
},
"docModel": {
"enabled": true
},

"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "./dist/as-dynamic-forms.d.ts"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "./dist/as-dynamic-forms.d.ts"
},

"tsdocMetadata": {
"enabled": false
"tsdocMetadata": {
"enabled": false
},

"messages": {
"compilerMessageReporting": {
"default": {
"logLevel": "warning"
}
},

"messages": {
"compilerMessageReporting": {
"default": {
"logLevel": "warning"
}
"extractorMessageReporting": {
"default": {
"logLevel": "warning",
"addToApiReportFile": true
},

"extractorMessageReporting": {
"default": {
"logLevel": "warning",
"addToApiReportFile": true
},

"ae-missing-release-tag": {
"logLevel": "none"
}
},
"ae-missing-release-tag": {
"logLevel": "none"
}
},

"tsdocMessageReporting": {
"default": {
"logLevel": "warning"
}
"tsdocMessageReporting": {
"default": {
"logLevel": "warning"
}
}
}
}
2 changes: 1 addition & 1 deletion src/components/dynamic-form/DynamicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<script lang="ts">
import { defineComponent, PropType, watch } from 'vue';
import { useDynamicForms, DynamicForm } from '/@/';
import { useDynamicForms, DynamicForm } from '/@/index';
import { useDynamicForm } from '/@/composables/useDynamicForm';
const props = {
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"strict": true,
"noUnusedLocals": true,
"strictNullChecks": false,
"declaration": true,
"declarationMap": true,
"rootDir": ".",
"types": ["vite/client", "jest", "node", "@types/jest"],
"paths": {
Expand Down
1 change: 0 additions & 1 deletion vite-lib.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import copy from 'rollup-plugin-copy';
import dts from 'vite-plugin-dts';

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

0 comments on commit aa98f25

Please sign in to comment.