Skip to content

Commit 5bbb77e

Browse files
authored
use tsconfig.json (#12)
* use tsconfig.json * 2.10.0 * update npmignore
1 parent 362f7a2 commit 5bbb77e

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.npmignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ docs
1515
# test
1616
src/test
1717
spec
18+
src/test.ts
1819

1920
# karma
2021
karma.conf.js
@@ -27,4 +28,7 @@ tsconfig.json
2728
tsconfig.spec.json
2829

2930
# tslint
30-
tslint.json
31+
tslint.json
32+
33+
# .gitpod
34+
.gitpod.yml

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@themost/client",
3-
"version": "2.9.6",
3+
"version": "2.10.0",
44
"description": "MOST Web Framework Codename Blueshift - Client Common",
55
"module": "dist/index.esm.js",
66
"main": "dist/index.js",

rollup.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const name = 'index';
44
const pkg = require('./package.json');
55

66
module.exports = [{
7-
input: './src/index.ts',
7+
input: 'src/index.ts',
88
output: [
99
{
1010
file: `${dist}${name}.cjs.js`,
@@ -22,8 +22,6 @@ module.exports = [{
2222
],
2323
external: Object.keys(pkg.dependencies),
2424
plugins: [
25-
typescript({
26-
declaration: true
27-
})
25+
typescript({ tsconfig: './tsconfig.json' })
2826
]
2927
}];

tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"noImplicitAny": true,
1212
"noImplicitReturns": true,
1313
"declaration": true,
14-
"outDir": "./",
14+
"outDir": "./dist",
1515
"stripInternal": true,
1616
"paths": {
1717
},
@@ -28,7 +28,6 @@
2828
"test"
2929
],
3030
"files": [
31-
"src/index.ts",
32-
"src/common.ts"
31+
"src/index.ts"
3332
]
3433
}

0 commit comments

Comments
 (0)