1.2.0 • Published 1 year ago

@itoxiq/vue-tsc-files v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vue-tsc-files

A tiny tool to run vue-tsc on specific files without ignoring tsconfig.json.

Ported from tsc-files.

Installation

npm i -D @itoxiq/vue-tsc-files
yarn add -D @itoxiq/vue-tsc-files

Why

I wanted to type-check only the staged files with lint-staged.

Usage

With lint-staged:

{
  "lint-staged": {
    "**/*.{vue,ts,tsx}": "vue-tsc-files"
  }
}

Sidenotes

Flag "--noEmit" is always passed to underlying vue-tsc by default.

vue-tsc-files passes module declarations and namespaces from d.ts files to vue-tsc, so please make sure that needed declarations are inside d.ts files.

// example.d.ts
declare module "@vue/runtime-core" {
  interface ComponentCustomProperties {
    $custom: MyCustomType;
  }
}

License

Released under the MIT License.

1.2.0

1 year ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.4

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.0

2 years ago