mirror of
https://github.com/bitwarden/jslib
synced 2025-12-10 05:13:41 +00:00
Add a shared tsconfig file (#609)
This commit is contained in:
@@ -1,18 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../shared/tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"pretty": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"target": "ES6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"lib": ["es5", "es6", "es7", "dom"],
|
|
||||||
"sourceMap": true,
|
|
||||||
"declaration": true,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"declarationDir": "dist/types",
|
|
||||||
"outDir": "dist",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"jslib-common/*": ["../common/src/*"]
|
"jslib-common/*": ["../common/src/*"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,5 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"extends": "../shared/tsconfig",
|
||||||
"pretty": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"target": "ES6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"lib": ["es5", "es6", "es7", "dom"],
|
|
||||||
"sourceMap": true,
|
|
||||||
"declaration": true,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"declarationDir": "dist/types",
|
|
||||||
"outDir": "dist",
|
|
||||||
"typeRoots": ["node_modules/@types"]
|
|
||||||
},
|
|
||||||
"include": ["src", "spec"],
|
"include": ["src", "spec"],
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../shared/tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"pretty": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"target": "ES6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"lib": ["es5", "es6", "es7", "dom"],
|
|
||||||
"sourceMap": true,
|
|
||||||
"declaration": true,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"declarationDir": "dist/types",
|
|
||||||
"outDir": "dist",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"jslib-common/*": ["../common/src/*"]
|
"jslib-common/*": ["../common/src/*"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../shared/tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"pretty": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"target": "ES6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"lib": ["es5", "es6", "es7", "dom"],
|
|
||||||
"sourceMap": true,
|
|
||||||
"declaration": true,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"declarationDir": "dist/types",
|
|
||||||
"outDir": "dist",
|
|
||||||
"types": [],
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"jslib-common/*": ["../common/src/*"]
|
"jslib-common/*": ["../common/src/*"]
|
||||||
}
|
}
|
||||||
|
|||||||
15
shared/tsconfig.json
Normal file
15
shared/tsconfig.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"pretty": true,
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"target": "ES6",
|
||||||
|
"module": "commonjs",
|
||||||
|
"lib": ["es5", "es6", "es7", "dom"],
|
||||||
|
"sourceMap": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"outDir": "dist"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user