Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Fix typescript config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaorun343 committed Jun 17, 2019
1 parent e2ed4ed commit a29cfcd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"author": "kaorun343",
"license": "MIT",
"directories": {
"test": "test"
"tests": "tests"
},
"scripts": {
"build": "tsc --declaration src/vue-property-decorator.ts --outDir lib && rollup -c",
"build": "tsc -p ./src/tsconfig.json && rollup -c",
"test": "jest"
},
"files": [
Expand All @@ -27,9 +27,7 @@
"jest": "^24.8.0",
"reflect-metadata": "^0.1.13",
"rollup": "^1.15.6",
"rollup-plugin-commonjs": "^10.0.0",
"ts-jest": "^24.0.2",
"tslib": "^1.10.0",
"typescript": "^3.5.2"
},
"typings": "./lib/vue-property-decorator.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"declaration": true /* Generates corresponding '.d.ts' file. */,
"outDir": "../lib" /* Redirect output structure to the directory. */,
"rootDir": "./" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "typeRoots": [], /* List of folders to include type definitions from. */
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "ES5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
"module": "es2015" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"module": "ES2015" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"lib": [
"dom",
"es2015",
Expand All @@ -13,7 +13,7 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": true /* Generates corresponding '.d.ts' file. */,
// "declaration": true /* Generates corresponding '.d.ts' file. */,
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
Expand Down

0 comments on commit a29cfcd

Please sign in to comment.