Skip to content

Commit 558e02c

Browse files
committed
fix: fix typings
1 parent 30f545a commit 558e02c

File tree

4 files changed

+210
-176
lines changed

4 files changed

+210
-176
lines changed

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"description": "Buildstamp",
99
"source": "src/main/ts/index.ts",
1010
"main": "target/es5/index.js",
11-
"types": "target/es5/index.d.ts",
11+
"types": "typings/index.d.ts",
1212
"typescript": {
13-
"definition": "target/es5/index.d.ts"
13+
"definition": "typings/index.d.ts"
1414
},
1515
"scripts": {
1616
"lint": "eslint src/**/*.ts",
@@ -21,7 +21,7 @@
2121
"build:es5": "mkdirp target/es5 && tsc -p tsconfig.es5.json",
2222
"build:es6": "mkdirp target/es6 && tsc -p tsconfig.es6.json",
2323
"build:ts": "cp -r src/main/ts/ target/ts/",
24-
"build:libdef": "dts-generator --project ./ --out typings/index.d.ts --prefix buildstamp/target/es5 --name buildstamp --main buildstamp/target/es5/index --moduleResolution node && libdeffix --dts=./typings/index.d.ts --prefix=buildstamp/target/es5 && flowgen typings/index.d.ts --output-file flow-typed/index.flow.js",
24+
"build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json",
2525
"test:report": "yarn test && yarn push:report",
2626
"push:report": "yarn coveralls:push",
2727
"coveralls:push": "cat ./coverage/lcov.info | coveralls || exit 0",
@@ -48,33 +48,33 @@
4848
"author": "Anton Golub <[email protected]>",
4949
"license": "MIT",
5050
"devDependencies": {
51-
"@qiwi/libdefkit": "^1.1.0",
51+
"@qiwi/libdefkit": "^2.0.1",
5252
"@qiwi/license": "^1.1.3",
5353
"@qiwi/semantic-release-gh-pages-plugin": "^4.0.3",
5454
"@semantic-release/changelog": "^5.0.1",
5555
"@semantic-release/git": "^9.0.0",
56-
"@semantic-release/github": "^7.0.7",
57-
"@semantic-release/npm": "^7.0.5",
56+
"@semantic-release/github": "^7.1.1",
57+
"@semantic-release/npm": "^7.0.6",
5858
"@swissquote/crafty-preset-jest": "^1.12.0",
59-
"@types/jest": "^26.0.13",
59+
"@types/jest": "^26.0.14",
6060
"@types/mkdirp": "^1.0.1",
61-
"@types/node": "^14.6.4",
61+
"@types/node": "^14.11.2",
6262
"@types/rimraf": "^3.0.0",
63-
"@typescript-eslint/eslint-plugin": "^4.0.1",
64-
"@typescript-eslint/parser": "^4.0.1",
63+
"@typescript-eslint/eslint-plugin": "^4.2.0",
64+
"@typescript-eslint/parser": "^4.2.0",
6565
"coveralls": "^3.1.0",
66-
"eslint": "^7.8.1",
66+
"eslint": "^7.9.0",
6767
"eslint-config-qiwi": "^1.7.0",
6868
"jest": "^26.4.2",
69-
"prettier": "^2.1.1",
69+
"prettier": "^2.1.2",
7070
"rimraf": "^3.0.2",
71-
"semantic-release": "^17.1.1",
72-
"terser": "^5.3.0",
73-
"ts-jest": "^26.3.0",
71+
"semantic-release": "^17.1.2",
72+
"terser": "^5.3.2",
73+
"ts-jest": "^26.4.0",
7474
"tslint-config-qiwi": "^1.5.0",
75-
"typedoc": "^0.19.1",
75+
"typedoc": "^0.19.2",
7676
"typedoc-plugin-external-module-name": "^4.0.3",
77-
"typescript": "4.0.2"
77+
"typescript": "4.0.3"
7878
},
7979
"dependencies": {
8080
"find-git-root": "^1.0.4",

src/main/ts/executor.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { dockerChunk } from './chunks/docker'
44
import { dateChunk } from './chunks/date'
55
import { loggerChunk } from './chunks/logger'
66
import { writerChunk } from './chunks/writer'
7-
import { TStamp, TEnv, TStampOptions } from './interfaces'
7+
import { TStamp, TEnv, TStampOptions, TStampChunk } from './interfaces'
88

9-
export const chunks = [
9+
export const chunks: TStampChunk[] = [
1010
normalizeChunk,
1111
gitChunk,
1212
dockerChunk,

src/main/ts/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ import { execute } from './executor'
22

33
export * from './interfaces'
44
export { execute }
5-
6-
export default { execute }

0 commit comments

Comments
 (0)