Skip to content

Commit 6d2c1b9

Browse files
committed
fix: build
1 parent a9c332a commit 6d2c1b9

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

.vscode/launch.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
3+
// Pointez pour afficher la description des attributs existants.
4+
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
8+
{
9+
"type": "node",
10+
"request": "launch",
11+
"name": "Run main AVA tests",
12+
"program": "${workspaceRoot}/node_modules/ava/profile.js",
13+
"args": [
14+
"${workspaceFolder}/build/lib.test.js"
15+
]
16+
}
17+
]
18+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"test:codecov": "tslint -p ./ && tsc && nyc npm run ava",
1212
"build:ts": "tsc -p tsconfig.build.json",
1313
"build": "npm run build:ts && npm run build:ts -- -m es6 --outDir es",
14+
"prepublish": "npm run build",
1415
"doc": "npm run build && typedoc --out docs/ dist/",
1516
"semantic-release": "semantic-release",
1617
"watch:ts": "tsc -w",

tsconfig.build.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"exclude": [
88
"node_modules",
99
"es",
10+
"dist",
1011
"build"
1112
]
1213
}

tsconfig.json

+4-20
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
{
2+
"extends": "./tsconfig.base.json",
23
"compilerOptions": {
3-
"target": "ES2017",
4-
"module": "commonjs",
5-
"lib": [
6-
"es2017",
7-
"dom"
8-
],
9-
"types": [],
10-
"declaration": true,
11-
"sourceMap": true,
124
"outDir": "./build",
13-
"strict": true,
14-
"noImplicitAny": true,
15-
"strictNullChecks": true,
16-
"noImplicitThis": true,
17-
"alwaysStrict": true,
18-
"noUnusedLocals": true,
19-
"noUnusedParameters": true,
20-
"noImplicitReturns": true,
21-
"moduleResolution": "node",
22-
"baseUrl": "./"
5+
"baseUrl": "./",
6+
"sourceMap": true
237
},
248
"include": [
259
"lib/*"
2610
],
2711
"exclude": [
2812
"node_modules"
2913
]
30-
}
14+
}

0 commit comments

Comments
 (0)