Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vite-plugin-dts

qmhc3.1mMIT4.5.0TypeScript support: included

vite-plugin-dts

vite, vite-plugin, ts, dts, typescript, vue, tsc, vue-tsc, volar

readme

vite-plugin-dts

一款用于在 库模式 中从 .ts(x).vue 源文件生成类型文件(*.d.ts)的 Vite 插件。

version license

中文 | English

安装

pnpm i vite-plugin-dts -D

使用

vite.config.ts

import { resolve } from 'path'
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'

export default defineConfig({
  build: {
    lib: {
      entry: resolve(__dirname, 'src/index.ts'),
      name: 'MyLib',
      formats: ['es'],
      fileName: 'my-lib'
    }
  },
  plugins: [dts()]
})

默认情况,生成的类型文件会跟随源文件的结构。

如果你希望将所有的类型合并到一个文件中,只需指定 rollupTypes: true

{
  plugins: [dts({ rollupTypes: true })]
}

如果你从 Vite 官方模板开始,你应该指定 tsconfigPath

{
  plugins: [dts({ tsconfigPath: './tsconfig.app.json' })]
}

3.0.0 开始,你可以在 Rollup 中使用该插件。

常见问题

此处将收录一些常见的问题并提供一些解决方案。

打包时出现了无法从 node_modules 的包中推断类型的错误

这是 TypeScript 通过软链接 (pnpm) 读取 node_modules 中过的类型时会出现的一个已知的问题,可以参考这个 issue,目前已有的一个解决方案,在你的 tsconfig.json 中添加 baseUrl 以及在 paths 添加这些包的路径:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "third-lib": ["node_modules/third-lib"]
    }
  }
}

rollupTypes: true 时出现 Internal Error

参考这个 issue,这是由于 @microsoft/api-extractor 或者是 TypeScript 解析器的一些限制导致的。

主要原因在于 tsconfig.json 中指定了 baseUrl 并且在引入时直接使用非标准路径。

例如:指定了 baseUrl: 'src' 并且在 <root>/src/index.ts 中引入 <root>/src/components/index.ts 时使用了 import 'components' 而不是 import './components'

目前想要正常打包,需要规避上述情况,或使用别名代替(配合 paths 属性)。

打包时出现找不到模块的错误

这很有可能是因为在你的默认 tsconfig.json 中未有正确配置 include 导致的。

由于一些局限性,插件依赖最上层的 tsconfig.json 来解析需要包含的文件,所以你需要在最上层的 tsconfig.json 中指定正确的 include,或者通过插件的 tsconfigPath 选项指定一个包含了正确 include 的配置文件路径,例如在 Vite 初始模板中它是 tsconfig.app.json

可以参考这个 评论.

<summary>过时的</summary>

打包后出现类型文件缺失 (1.7.0 之前)

默认情况下 skipDiagnostics 选项的值为 true,这意味着打包过程中将跳过类型检查(一些项目通常有 vue-tsc 等的类型检查工具),这时如果出现存在类型错误的文件,并且这是错误会中断打包过程,那么这些文件对应的类型文件将不会被生成。

如果您的项目没有依赖外部的类型检查工具,这时候可以您可以设置 skipDiagnostics: falselogDiagnostics: true 来打开插件的诊断与输出功能,这将帮助您检查打包过程中出现的类型错误并将错误信息输出至终端。

Vue 组件中同时使用了 scriptsetup-script 后出现类型错误(3.0.0 之前)

这通常是由于分别在 scriptsetup-script 中同时使用了 defineComponent 方法导致的。 vue/compiler-sfc 为这类文件编译时会将 script 中的默认导出结果合并到 setup-scriptdefineComponent 的参数定义中,而 defineComponent 的参数类型与结果类型并不兼容,这一行为将会导致类型错误。

这是一个简单的示例,您应该将位于 script 中的 defineComponent 方法移除,直接导出一个原始的对象。

选项

import type ts from 'typescript'
import type { IExtractorConfigPrepareOptions, IExtractorInvokeOptions } from '@microsoft/api-extractor'
import type { LogLevel } from 'vite'

type MaybePromise<T> = T | Promise<T>

export type RollupConfig = Omit<
  IExtractorConfigPrepareOptions['configObject'],
  | 'projectFolder'
  | 'mainEntryPointFilePath'
  | 'compiler'
  | 'dtsRollup'
  >

export interface Resolver {
  /**
   * 解析器的名称
   *
   * 靠后的同名解析器将会覆盖靠前的
   */
  name: string,
  /**
   * 判断解析器是否支持该文件
   */
  supports: (id: string) => void | boolean,
  /**
   * 将源文件转换为类型文件
   *
   * 注意,返回的文件的路径应该基于 `outDir`,或者相对于 `root`
   */
  transform: (payload: {
    id: string,
    code: string,
    root: string,
    outDir: string,
    host: ts.CompilerHost,
    program: ts.Program,
  }) => MaybePromise<{ path: string, content: string }[]>
}

export interface PluginOptions {
  /**
   * 指定根目录
   *
   * 默认为 Vite 配置的 'root',使用 Rollup 为 `process.cwd()`
   */
  root?: string,

  /**
   * 指定输出目录
   *
   * 可以指定一个数组来输出到多个目录中
   *
   * 默认为 Vite 配置的 'build.outDir',使用 Rollup 时为 tsconfig.json 的 `outDir`
   */
  outDir?: string | string[],

  /**
   * 用于手动设置入口文件的根路径(通常用在 monorepo)
   *
   * 在计算每个文件的输出路径时将基于该路径
   *
   * 默认为所有源文件的最小公共路径
   */
  entryRoot?: string,

  /**
   * 限制类型文件生成在 `outDir` 内
   *
   * 如果为 `true`,生成在 `outDir` 外的文件将被忽略
   *
   * @default true
   */
  strictOutput?: boolean,

  /**
   * 覆写 CompilerOptions
   *
   * @default null
   */
  compilerOptions?: ts.CompilerOptions | null,

  /**
   * 指定 tsconfig.json 的路径
   *
   * 插件会解析 tsconfig.json 的 include 和 exclude 选项
   *
   * 未指定时插件默认从根目录开始寻找配置文件
   */
  tsconfigPath?: string,

  /**
   * 指定自定义的解析器
   *
   * @default []
   */
  resolvers?: Resolver[],

  /**
   * 解析 tsconfig.json 的 `paths` 作为别名
   *
   * 注意,这些别名仅用在类型文件中使用
   *
   * @default true
   * @remarks 只使用每个路径的第一个替换
   */
  pathsToAliases?: boolean,

  /**
   * 设置在转换别名时哪些路径需要排除
   *
   * @default []
   */
  aliasesExclude?: (string | RegExp)[],

  /**
   * 是否将 '.vue.d.ts' 文件名转换为 '.d.ts'
   *
   * 如果转换后出现重名,将会回退到原来的名字。
   *
   * @default false
   */
  cleanVueFileName?: boolean,

  /**
   * 是否将动态引入转换为静态(例如:`import('vue').DefineComponent` 转换为 `import { DefineComponent } from 'vue'`)
   *
   * 开启 `rollupTypes` 时强制为 `true`
   *
   * @default false
   */
  staticImport?: boolean,

  /**
   * 手动设置包含路径的 glob(相对于 root)
   *
   * 默认基于 tsconfig.json 的 `include` 选项(相对于 tsconfig.json 所在目录)
   */
  include?: string | string[],

  /**
   * 手动设置排除路径的 glob
   *
   * 默认基于 tsconfig.json 的 `exclude` 选线,未设置时为 `'node_modules/**'`
   */
  exclude?: string | string[],

  /**
   * 是否移除 `import 'xxx'`
   *
   * @default true
   */
  clearPureImport?: boolean,

  /**
   * 是否生成类型入口文件
   *
   * 当为 `true` 时会基于 package.json 的 `types` 字段生成,或者 `${outDir}/index.d.ts`
   *
   * 当开启 `rollupTypes` 时强制为 `true`
   *
   * @default false
   */
  insertTypesEntry?: boolean,

  /**
   * 设置是否将发出的类型文件打包进单个文件
   *
   * 基于 `@microsoft/api-extractor`,过程将会消耗一些时间
   *
   * @default false
   */
  rollupTypes?: boolean,

  /**
   * 设置 `@microsoft/api-extractor` 的 `bundledPackages` 选项
   *
   * @default []
   * @see https://api-extractor.com/pages/configs/api-extractor_json/#bundledpackages
   */
  bundledPackages?: string[],

  /**
   * 覆写 `@microsoft/api-extractor` 的配置
   *
   * @default null
   * @see https://api-extractor.com/pages/setup/configure_api_report/
   */
  rollupConfig?: RollupConfig,

  /**
   * 覆写 `@microsoft/api-extractor` 的调用选项
   *
   * @default null
   * @see https://api-extractor.com/pages/setup/invoking/#invoking-from-a-build-script
   */
  rollupOptions?: IExtractorInvokeOptions,

  /**
   * 是否将源码里的 .d.ts 文件复制到 `outDir`
   *
   * @default false
   * @remarks 在 2.0 之前它默认为 `true`
   */
  copyDtsFiles?: boolean,

  /**
   * 是否只生成类型文件
   *
   * 当为 `true` 时会强制删除所有 Vite(Rollup)的原始产物
   *
   * @default false
   */
  declarationOnly?: boolean,

  /**
   * 指定插件的输出等级
   *
   * 默认基于 Vite 配置的 'logLevel' 选项
   */
  logLevel?: LogLevel,

  /**
   * 获取诊断信息后的钩子
   *
   * 可以根据 `diagnostics.length` 来判断有误类型错误
   *
   * @default () => {}
   */
  afterDiagnostic?: (diagnostics: readonly ts.Diagnostic[]) => MaybePromise<void>,

  /**
   * 类型声明文件被写入前的钩子
   *
   * 可以在钩子里转换文件路径和文件内容
   *
   * 当返回 `false` 或 `Promise<false>` 时会跳过该文件
   *
   * @default () => {}
   */
  beforeWriteFile?: (
    filePath: string,
    content: string
  ) => MaybePromise<
    | void
    | false
    | {
      filePath?: string,
      content?: string
    }
  >,

  /**
   * 类型文件被打包进单个文件后的钩子
   *
   * @default () => {}
   */
  afterRollup?: (result: ExtractorResult) => MaybePromise<void>,

  /**
   * 在所有类型文件被写入后的钩子
   *
   * 它会接收一个记录了那些最终被写入的文件的映射(path -> content)
   *
   * @default () => {}
   */
  afterBuild?: (emittedFiles: Map<string, string>) => MaybePromise<void>
}

贡献者

感谢他们的所做的一切贡献!

contributors

示例

克隆项目然后执行下列命令:

pnpm run test:ts

然后检查 examples/ts/types 目录。

examples 目录下同样有 Vue 和 React 的案例。

一个使用该插件的真实项目:Vexip UI

授权

MIT 授权。

changelog

4.5.0 (2025-01-10)

4.4.0 (2024-12-19)

Bug Fixes

  • correctly generate declaration for custom SFC (acf627d), closes #394

Features

4.3.0 (2024-10-22)

Features

  • upgrade api-extractor and typescript (#390) (94cdb59)

4.2.4 (2024-10-11)

Bug Fixes

  • provide default baseUrl and correctly parse tsconfig paths (#386) (dc3cbfe), closes #330 #330
  • should re-emit all source files when change in watch mode (a7e1c0c), closes #383

4.2.3 (2024-09-30)

Bug Fixes

4.2.2 (2024-09-24)

Bug Fixes

  • correctly get package info in pnp mode (984f487), closes #384

4.2.1 (2024-09-08)

Bug Fixes

  • remove api-extractor patch (770d5b1)

4.2.0 (2024-09-08)

Features

4.1.1 (2024-09-06)

Bug Fixes

  • correct resolve Vue when create program (0621332), closes #380

4.1.0 (2024-09-01)

Bug Fixes

  • correctly parse tsconfig paths with nested imports (#376) (10118ae), closes #330
  • only clean vue suffix when no duplicated name (068e711), closes #372

Features

  • auto switch to original program if no Vue (a04a191), closes #363

4.0.3 (2024-08-14)

Bug Fixes

  • normalize typescript lib path for rollup (#366) (b0c63df)

4.0.2 (2024-08-09)

Bug Fixes

  • ensure inserted index file be a module (f93e98c), closes #365

4.0.1 (2024-08-07)

Bug Fixes

4.0.0 (2024-08-06)

Bug Fixes

  • remove global types for vue declaration files (e873107), closes #354
  • resolve module preserve to esnext for rollup (710400a), closes #358
  • sync diff line to mappings after transform (cd5ba32), closes #356
  • typescript lib path resolution for rollup in monorepo (#360) (da4af65)

4.0.0-beta.2 (2024-07-30)

Bug Fixes

  • ignore namespace from declaration collect (b9c3947), closes #352
  • more accurately generate index file (e080ce5), closes #345

Features

4.0.0-beta.1 (2024-07-18)

Bug Fixes

  • should parse files option into include (b219453), closes #337

Features

4.0.0-beta.0 (2024-07-17)

Bug Fixes

  • support module extension for rollup types (#339) (bd1b52a)

Features

3.9.1 (2024-05-05)

Bug Fixes

  • correctly process cleaning .vue paths (0a3ad73), closes #325

3.9.0 (2024-04-23)

Features

3.8.3 (2024-04-15)

Bug Fixes

3.8.2 (2024-04-12)

Bug Fixes

  • correctly process aliases which are inside generic types (0d204d9), closes #317
  • ignore walk for module declaration node (1d65015), closes #318

3.8.1 (2024-03-28)

Bug Fixes

  • correct process property names in imports (fb320fb), closes #316

3.8.0 (2024-03-27)

Bug Fixes

  • add syntactic and semantic diagnostics (#310) (7c10782)

Features

  • collect declared modules when rollup types (39606bd), closes #240

3.7.3 (2024-02-21)

Bug Fixes

  • incorrect process for removing pure import (d0c0c86), closes #301

3.7.2 (2024-01-24)

Bug Fixes

  • correct match result for alias form tsconfig (88469d0), closes #298

3.7.1 (2024-01-15)

Bug Fixes

  • improve aliases replacement logic (e8827cb), closes #294
  • manually collect compiler options for types rollup (0d0b255), closes #297

3.7.0 (2023-12-25)

Bug Fixes

  • incorrect alias transform if using a regexp that ends with slash (213aa39), closes #290

Features

  • add emittedFiles parameter for afterBuild hook (b06d2c4)

3.6.4 (2023-11-30)

Bug Fixes

  • should match as default export syntax (6e2d16d), closes #285
  • using more noticeable diagnostics log (4ad9a81)

3.6.3 (2023-10-30)

Bug Fixes

  • make inject moduleResolution as patch for Vue (a6f12dc), closes #280

3.6.2 (2023-10-27)

Bug Fixes

  • remove passing projectReferences to program (fc1209c), closes #279

3.6.1 (2023-10-24)

Bug Fixes

  • ensure moduleResolution option in compilerOptions (01528a4), closes #277
  • ensure rollupTypes work with cleanVueFileName (261f7bc), closes #276

3.6.0 (2023-09-26)

Features

  • support custom api-extractor invoke options (f8c61e5), closes #270

3.5.4 (2023-09-21)

Bug Fixes

  • ensure relative to config path if not specify include/exclude (a7bab4d), closes #272

3.5.3 (2023-08-29)

Bug Fixes

  • improve fine types path logic (f1ac4d6)
  • minor typo in docs (#264) (1d17e9c)
  • remove typescript version log of api-extractor (f161ade)

3.5.2 (2023-08-12)

Reverts

  • fails to generate types are already in out dir (#260) (86298b6)

3.5.1 (2023-08-06)

Bug Fixes

  • obviate effect of declarationDir config (7dee40b), closes #258

3.5.0 (2023-08-04)

Bug Fixes

  • ensure resolved type entry path ends with .d.ts (3767fdf)
  • unexpected undefined aliases (fc51b68), closes #257

Features

3.4.0 (2023-07-30)

Bug Fixes

  • fails to generate hen types are already in out dir (284c77f), closes #254

Features

  • support override the config of api-extractor (8f5929c)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.5.4 (2023-09-21)

Bug Fixes

  • ensure relative to config path if not specify include/exclude (a7bab4d), closes #272

3.5.3 (2023-08-29)

Bug Fixes

  • improve fine types path logic (f1ac4d6)
  • minor typo in docs (#264) (1d17e9c)
  • remove typescript version log of api-extractor (f161ade)

3.5.2 (2023-08-12)

Reverts

  • fails to generate types are already in out dir (#260) (86298b6)

3.5.1 (2023-08-06)

Bug Fixes

  • obviate effect of declarationDir config (7dee40b), closes #258

3.5.0 (2023-08-04)

Bug Fixes

  • ensure resolved type entry path ends with .d.ts (3767fdf)
  • unexpected undefined aliases (fc51b68), closes #257

Features

3.4.0 (2023-07-30)

Bug Fixes

  • fails to generate hen types are already in out dir (284c77f), closes #254

Features

  • support override the config of api-extractor (8f5929c)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.5.3 (2023-08-29)

Bug Fixes

  • improve fine types path logic (f1ac4d6)
  • minor typo in docs (#264) (1d17e9c)
  • remove typescript version log of api-extractor (f161ade)

3.5.2 (2023-08-12)

Reverts

  • fails to generate types are already in out dir (#260) (86298b6)

3.5.1 (2023-08-06)

Bug Fixes

  • obviate effect of declarationDir config (7dee40b), closes #258

3.5.0 (2023-08-04)

Bug Fixes

  • ensure resolved type entry path ends with .d.ts (3767fdf)
  • unexpected undefined aliases (fc51b68), closes #257

Features

3.4.0 (2023-07-30)

Bug Fixes

  • fails to generate hen types are already in out dir (284c77f), closes #254

Features

  • support override the config of api-extractor (8f5929c)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.5.2 (2023-08-12)

Reverts

  • fails to generate types are already in out dir (#260) (86298b6)

3.5.1 (2023-08-06)

Bug Fixes

  • obviate effect of declarationDir config (7dee40b), closes #258

3.5.0 (2023-08-04)

Bug Fixes

  • ensure resolved type entry path ends with .d.ts (3767fdf)
  • unexpected undefined aliases (fc51b68), closes #257

Features

3.4.0 (2023-07-30)

Bug Fixes

  • fails to generate hen types are already in out dir (284c77f), closes #254

Features

  • support override the config of api-extractor (8f5929c)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.5.1 (2023-08-06)

Bug Fixes

  • obviate effect of declarationDir config (7dee40b), closes #258

3.5.0 (2023-08-04)

Bug Fixes

  • ensure resolved type entry path ends with .d.ts (3767fdf)
  • unexpected undefined aliases (fc51b68), closes #257

Features

3.4.0 (2023-07-30)

Bug Fixes

  • fails to generate hen types are already in out dir (284c77f), closes #254

Features

  • support override the config of api-extractor (8f5929c)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.5.0 (2023-08-04)

Bug Fixes

  • ensure resolved type entry path ends with .d.ts (3767fdf)
  • unexpected undefined aliases (fc51b68), closes #257

Features

3.4.0 (2023-07-30)

Bug Fixes

  • fails to generate hen types are already in out dir (284c77f), closes #254

Features

  • support override the config of api-extractor (8f5929c)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.4.0 (2023-07-30)

Bug Fixes

  • fails to generate hen types are already in out dir (284c77f), closes #254

Features

  • support override the config of api-extractor (8f5929c)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.3.1 (2023-07-17)

Bug Fixes

  • correct sources path calculate (0d84180), closes #245
  • ensure lib name is valid (7cfe2ea), closes #247
  • unexpected remove reportFileName config (27fe3c7), closes #246

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.3.0 (2023-07-14)

Bug Fixes

  • should pass full path to resolver.support (7088a0c)
  • using raw target when rolling up types (e53c815), closes #242

Features

  • beforeWriteFile supports return Promise (5e5b93c)
  • support sourcemap to .vue files (#243) (7445046)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.2.0 (2023-07-08)

Bug Fixes

  • ensure paths are absolute when process public root (3628877), closes #238
  • normalize paths of resolver transform returns (3b5a945)

Features

  • create resolver for json files (#237) (53c58c8)
  • support parse paths of tsconfig.json to aliases (#236) (68fc12a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.1.1 (2023-07-07)

Bug Fixes

  • ensure aliases init when using Rollup (22c69a4)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.1.0 (2023-07-05)

Features

  • support custom resolvers to transform files (#233) (be43a4d)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.0.3 (2023-07-03)

Bug Fixes

  • incorrect lib path process when rollup types (292b8b7), closes #232

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.0.2 (2023-06-30)

Bug Fixes

  • error if exists same lib when transfrom dynamic imports (c187278)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.0.1 (2023-06-30)

Bug Fixes

  • correctly process default dynamic imports (99105b0), closes #222
  • ensure collect manual dts for js source files (5b7c5e5), closes #184

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.0.0 (2023-06-30)

Bug Fixes

  • correct path process when specify entryRoot (fc15dac), closes #229 #230
  • correct time cost recording (57eb430)

Features

  • add strictOutput to limit output write (07224d1)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.0.0-beta.3 (2023-06-27)

Bug Fixes

  • incorrect entryRoot when in single inner entry (96d32d1)
  • promise A+ specification for isPromise method (#228) (3454a35)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.0.0-beta.2 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)

3.0.0-beta.1 (2023-06-27)

Features

  • transfer to use Volar, support Rollup, improve watch mode (#226) (bb7949c)

BREAKING CHANGES

  • Deprecated options: noEmitOnError, skipDiagnostics and libFolderPath. Rename options: outputDir -> outDir, tsConfigFilePath -> tsconfigPath.

2.3.0 (2023-04-17)

Features

2.1.0 (2023-03-08)

Features

2.0.2 (2023-02-23)

Bug Fixes

  • recursively resolve extended tsconfig path (#181) (7ca8502)

2.0.1 (2023-02-23)

Bug Fixes

  • vue: correctly remove components for normal script (6dbd9af)
  • vue: error when parse no argument function (4db63b4)

2.0.0 (2023-02-23)

Bug Fixes

  • ensure watch all the files defined in include (42a755c), closes #151
  • incorrect path resolve when copy dts source files (434f69e), closes #179
  • react: unlimited init order when using with react plugin (92b82ff), closes #148

BREAKING CHANGES

  • copyDtsFiles option now default to false.

2.0.0-beta.3 (2023-02-21)

Bug Fixes

  • support manually create dts for source file (2174868), closes #178

Features

  • support parse types entry from exports in package.json (f033cf8)

2.0.0-beta.2 (2023-02-20)

Bug Fixes

  • should re-transform when file changed in watch mode (eafdd3c), closes #99
  • vue: preprocess not direct exported component (8bd769e)

Features

  • support specify log level of plugin (2c1aeb0), closes #177

2.0.0-beta.1 (2023-02-17)

Bug Fixes

  • vue: conversion error when using outside ts props (25307cf), closes #175
  • vue: remove components option before inferring (90f8ac1)

2.0.0-beta.0 (2023-02-16)

Bug Fixes

  • override composite for root tsconfig (df1d0f4), closes #153
  • vue: ignore css vars when compile (6d2369a), closes #167

Features

  • vue: accurate types inferring for exposed and props (#173) (c25448c)

1.7.3 (2023-02-14)

Bug Fixes

  • incorrect compilerOptions when rollup dts (9dd8d9c), closes #171
  • normalize mts and cts declaration files extension (410288a), closes #169

1.7.2 (2023-01-31)

Bug Fixes

  • correct .d.ts extension in multiple outputs (5c9709c), closes #144
  • insertTypesEntry config supports publishConfig.types (#164) (dae4ef9)
  • mark typescript as external dependency (#160) (31e10d4)

1.7.1 (2022-11-14)

Bug Fixes

1.7.0 (2022-11-07)

Bug Fixes

  • compiler missing plugin decorators-legacy (#138) (717af2f)
  • derprecate logDiagnostics option (e405328)
  • incorrect compiler address resolution (#133) (01cc125)

Features

  • support customize typescript lib path (27b83f3), closes #134
  • support multiple entries for lib mode (1fafe54), closes #136

1.6.6 (2022-10-13)

Bug Fixes

  • adapt @microsoft/api-extractor 7.33+ (5acb4be)
  • always ship included dts files into soure (fc345e3), closes #126

1.6.5 (2022-10-06)

Bug Fixes

  • remove pnpm limitation in preinstall to support npm@6 (d7167b8), closes #123

1.6.4 (2022-09-30)

Bug Fixes

1.6.3 (2022-09-30)

Bug Fixes

  • both support cjs and esm(using by tsx) (38bd6a6)

1.6.2 (2022-09-30)

Bug Fixes

  • ensure generate dts for type only files (f3f4919), closes #118

1.6.1 (2022-09-28)

Bug Fixes

  • path error in cjs running (0832af4)

1.6.0 (2022-09-28)

Bug Fixes

  • correct compilerOptions.outDir for project init (8699219)
  • type error occurred while define defineProps retruns as props (41eb53a), closes #113

Features

  • skip write file when beforeWriteFile return exact false (9404ebc), closes #110

1.5.0 (2022-09-11)

Features

  • improve aliasesExclude to support more flexible definition (f652523), closes #93

1.4.1 (2022-08-01)

Bug Fixes

  • includes extends field when parse tsconfig.json (#96) (2631de0)

1.4.0 (2022-07-20)

Bug Fixes

  • ensure emit dts when no script sfc in vue component (869a466), closes #88

Features

1.3.1 (2022-07-18)

Bug Fixes

  • dynamiclly adjust the exports of inserted index file (abc9431), closes #81 #86
  • missing inserted entry when multiple outputs (39ff8ab)

1.3.0 (2022-07-13)

Bug Fixes

  • aliasesExclude not work when includes empty value (#85) (8b9b9aa)
  • correct type files generate when root is set (#68) (0b491bd)

Features

  • support multiple output dirs (cd19ee7)

1.2.1 (2022-07-05)

Bug Fixes

  • add parser plugins param for vue compiler (7d6bd16), closes #78
  • insert entry fail when no default export in source entry (#82) (1a4b161)

1.2.0 (2022-05-24)

Bug Fixes

  • support read typings form package.json (6b1bb29)

Features

  • add aliasesExclude option (#75) (7588ba4), closes #73
  • support override compilerOptions when rollup up (995612d), closes #74

1.1.1 (2022-04-25)

Bug Fixes

  • incorrect rollup entry path (a9309d8)

1.1.0 (2022-04-18)

Bug Fixes

  • lose the type of entry export default (50f55de)

Features

  • support rollup dts files after output (1d87b44)

1.0.5 (2022-04-02)

Bug Fixes

1.0.4 (2022-03-28)

Bug Fixes

  • transfer 'debug' to dependencies (7af9232)

1.0.3 (2022-03-25)

Bug Fixes

  • example: cannot resolve types through symlinks (0914a6a), closes #63

1.0.2 (2022-03-24)

Bug Fixes

  • incorrect entryRoot calculation in linux an mac (0136990), closes #62

1.0.1 (2022-03-22)

Bug Fixes

  • missing some libs defind in dependencies (ab7960f)

1.0.0 (2022-03-22)

Features

BREAKING CHANGES

  • The calculating output paths funtion of root option is assigned to entryRoot option, and currently will auto calculating the smallest public path as the default value for entryRoot option.

0.9.10 (2022-03-12)

Bug Fixes

  • make default include same as tsconfig.json (5ca7fc5), closes #58

0.9.9 (2022-01-11)

Bug Fixes

  • should filter vite virtual files (5fb24ba), closes #50

0.9.8 (2022-01-10)

Bug Fixes

0.9.7 (2021-12-30)

Bug Fixes

  • inserted entry not through beforeWriteFile (e16b9b1), closes #48

0.9.6 (2021-11-23)

Bug Fixes

  • aliases are not resolved when find ends with '/' (f04aab2), closes #37
  • not equally transform dts source files (ede5146)

0.9.5 (2021-11-21)

Bug Fixes

  • ensure dts source files through beforeWriteFile hook (3265412), closes #43

0.9.4 (2021-11-10)

Bug Fixes

  • cannot resolve types defined in dts files (666ca09), closes #42
  • take unused error when using setup-script (c4145b7)

0.9.3 (2021-11-03)

Bug Fixes

  • support require for cjs exports (cc5aff9), closes #39

0.9.2 (2021-10-20)

Bug Fixes

  • support optional @vue/compiler-sfc (34e1958)

0.9.1 (2021-10-18)

Bug Fixes

  • watch mode not update ts/js files (32a5699)

Features

  • add afterBuild hook option (#34) (e836689)
  • afterDiagnostic and afterBuild support async (c92d548)
  • skip dependencies by default (8ca3ed3)

0.8.3 (2021-10-11)

Bug Fixes

  • support tsconfig.json using comments (6e6e446), closes #31

0.8.2 (2021-09-30)

Bug Fixes

  • create correct source for tsx/jsx script (#29) (109721e)

0.8.1 (2021-09-22)

Bug Fixes

  • declarationDir make no file generated (3313a19), closes #27
  • rewrite noEmit option when init porject (735d26b), closes #28

0.8.0 (2021-09-13)

Bug Fixes

Features

  • add afterDiagnostic option (7d43ece), closes #22
  • support build watch mode (a920d97), closes #5

0.7.0 (2021-08-23)

Bug Fixes

  • support using script-setup alongside script (39517ad), closes #21

Features

  • add noEmitOnError and logDiagnostics options (8a840fe)

0.6.0 (2021-08-14)

Bug Fixes

  • resolve alias when using default import (3121d5b), closes #20

Features

0.5.3 (2021-07-22)

Bug Fixes

  • add allowJs option dynamically (36f8de2), closes #17
  • add js and jsx files when allowJs (0e1e6f7)

0.5.2 (2021-07-01)

Bug Fixes

  • cannot require @vue/compiler-sfc in monorepo (fd9b5c1), closes #14

0.5.1 (2021-06-18)

Bug Fixes

  • support insert entry from '.tsx' file (e38b7c4)

0.5.0 (2021-06-15)

Bug Fixes

  • ignore none export files (f9c41bc)
  • rename insertIndexEntry to insertTypesEntry (c9d392e)

Features

  • add clearPureImport option (0357f69)
  • defaults insert entry base on pkg.types (9c71f28)
  • optional insert index type entry (592a701)

0.4.3 (2021-06-11)

Bug Fixes

  • back off optional chaining and nullish coalescing (8e09129), closes #2
  • transform fs/promise to fs-extra (1794b0b), closes #4

Performance Improvements

  • use menory result generate bundle (858bf31)

0.4.2 (2021-06-09)

Bug Fixes

  • incomplete remove pure import (a1fd54e)
  • mamual set include and exclude (b6fb510)
  • more accurate normalize glob (1d65c47)
  • set rootDir if not set in compilerOptions (a1d83d2), closes #3
  • transform alias include dynamic imports (a6919b4)
  • transform alias include dynamic imports (3a5511e)

0.4.1 (2021-06-08)

Bug Fixes

  • dynamic import regexp endings include ']' and ')' (e5f37a6)

0.4.0 (2021-06-08)

Bug Fixes

  • bundle only once for multiple formats (be37fbf)

Features

  • bundle all from tsconfig include (252554a)

BREAKING CHANGES

  • Deprecated include and exclude options

0.3.5 (2021-06-08)

Bug Fixes

  • includes prue type export files (1341359)
  • incorrect path in transform alias (d686ff9)

0.3.4 (2021-06-07)

Bug Fixes

  • remove pure import (fe241de)
  • static import include relative path (4065217)

0.3.3 (2021-06-07)

Bug Fixes

  • keep output relative to root not to entry dir (e83ec64)

BREAKING CHANGES

  • Ouput declaration structure no longer relative to entry dir

0.3.2 (2021-06-07)

Bug Fixes

  • default root base on vite config (787ebc1)

0.3.1 (2021-06-06)

Bug Fixes

  • vue file explicit type lost (d0d8803)

0.3.0 (2021-06-06)

Bug Fixes

  • transform alias import to relative path (6d5a2d5)

Features

  • projectOptions refine to compilerOptions and tsConfigFilePath (eb61113)

BREAKING CHANGES

  • projectOptions no longer supported, the project init should be up to the plugin.

0.2.0 (2021-06-05)

Features

  • add beforeWriteFile hook (139e818)
  • add outputDir option (f289723)
  • add transform dynamic import to static (b2f0c0a)