From 89195b4b59bfe164d4a7a295534bf551c91ce3c6 Mon Sep 17 00:00:00 2001 From: Alvaro Date: Tue, 13 Jul 2021 10:12:32 +0200 Subject: [PATCH] fix: dts generation on dist --- .github/workflows/ci.yml | 2 + .github/workflows/release.yml | 2 + .npmignore | 4 +- api-extractor.json | 68 ++++++++++----------- src/components/dynamic-form/DynamicForm.vue | 2 +- tsconfig.json | 2 + vite-lib.config.ts | 1 - 7 files changed, 44 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 339ec77..350b51b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,3 +19,5 @@ jobs: run: yarn - name: Build Library run: yarn build + - name: Build Types Declarations + run: yarn build:dts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35b2a67..3217781 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.npmignore b/.npmignore index 91629e0..3caa2bf 100644 --- a/.npmignore +++ b/.npmignore @@ -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 @@ -30,3 +31,4 @@ yarn.lock /demos /src .github +cypress.json diff --git a/api-extractor.json b/api-extractor.json index 653ce9f..c5c4787 100644 --- a/api-extractor.json +++ b/api-extractor.json @@ -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": "/temp/" - }, + "apiReport": { + "enabled": true, + "reportFolder": "/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" } } } +} diff --git a/src/components/dynamic-form/DynamicForm.vue b/src/components/dynamic-form/DynamicForm.vue index 5e32c15..8258280 100644 --- a/src/components/dynamic-form/DynamicForm.vue +++ b/src/components/dynamic-form/DynamicForm.vue @@ -37,7 +37,7 @@