Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit 0cce7c2

Browse files
committed
configure tsconfig to create a library
1 parent 9c70b69 commit 0cce7c2

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

src/postcss-typescript-css.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const postcssTypescriptCss = () => {
2+
return 'Welcome to postcss-typescript-css';
3+
};
4+
5+
export = postcssTypescriptCss;

tsconfig.json

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"compilerOptions": {
3-
"outDir": "./dist/",
4-
"sourceMap": true,
3+
"outDir": "dist",
4+
"rootDir": "src",
5+
"sourceMap": false,
56
"noImplicitAny": true,
7+
"declaration": false,
68
"module": "commonjs",
7-
"target": "es5",
9+
"target": "es6",
10+
"removeComments": true,
11+
"lib": [
12+
"es2015"
13+
],
814
"types": [
915
"node"
1016
],
@@ -13,6 +19,9 @@
1319
]
1420
},
1521
"include": [
16-
"./src/**/*"
22+
"./src/**/*.ts"
23+
],
24+
"exclude": [
25+
"node_modules"
1726
]
1827
}

tslint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"no-shadowed-variable": true,
5353
"no-string-literal": false,
5454
"no-switch-case-fall-through": true,
55-
"no-unused-expression": true,
55+
"no-unused-expression": false,
5656
"no-unused-variable": false,
5757
"no-var-keyword": true,
5858
"radix": true,

0 commit comments

Comments
 (0)