Skip to content

Commit fbd2d8e

Browse files
committed
Move types into their own folder
1 parent 5b89fd6 commit fbd2d8e

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

azure-pipelines.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ pool:
99

1010
strategy:
1111
matrix:
12-
node_16_x:
13-
node_version: 16.x
1412
node_17_x:
1513
node_version: 17.x
1614

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
"main": "./commonjs/index.js",
77
"exports": {
88
".": {
9+
"types": "./types/index.d.ts",
910
"require": "./commonjs/index.js",
1011
"default": "./esm/index.js"
1112
}
1213
},
1314
"module": "./esm/index.js",
14-
"types": "./commonjs/index.d.ts",
15+
"types": "./types/index.d.ts",
1516
"maintainers": [
1617
{
1718
"name": "Alexandre Rogozine",
@@ -20,8 +21,8 @@
2021
],
2122
"scripts": {
2223
"build": "npx rimraf dist && npm run build:main && npm run build:esm && npm run build:declaration",
23-
"build:main": "tsc --removeComments --module commonjs --outDir dist/commonjs --declaration",
24-
"build:declaration": "tsc --module commonjs --outDir dist/commonjs --declaration --emitDeclarationOnly",
24+
"build:main": "tsc --removeComments --module commonjs --outDir dist/commonjs",
25+
"build:declaration": "tsc --module commonjs --outDir dist/types --declaration --emitDeclarationOnly",
2526
"build:esm": "tsc --removeComments --outDir dist/esm",
2627
"postbuild": "node --experimental-json-modules config/copy",
2728
"lint": "eslint -c .eslintrc.cjs --ext .ts src",

0 commit comments

Comments
 (0)