1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge pull request #1862 from oceanprotocol/1850-add-a-type-declaration-file

generate types to dist/types
This commit is contained in:
paulo@oceanprotocol 2024-10-30 18:25:59 +00:00 committed by GitHub
commit dc64981aa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

View File

@ -7,8 +7,7 @@
},
"project": [
"./tsconfig.json",
"./test/unit/tsconfig.json",
"./test/integration/tsconfig.json"
"./test/tsconfig.json",
]
},
"extends": ["oceanprotocol", "plugin:prettier/recommended"],

View File

@ -10,7 +10,7 @@
"require": "./dist/lib.js",
"default": "./dist/lib.modern.js"
},
"types": "./dist/src/index.d.ts",
"types": "./dist/types/index.d.ts",
"scripts": {
"start": "npm run clean && npm run build:metadata && tsc -w",
"build": "npm run clean && npm run build:metadata && microbundle build --format modern,esm,cjs,umd --compress --tsconfig tsconfig.json",

View File

@ -11,9 +11,9 @@
"removeComments": false,
"experimentalDecorators": true,
"preserveConstEnums": true,
"outDir": "./dist/",
"outDir": "./dist",
"sourceMap": true,
"declarationDir": "./dist/"
},
"include": ["src/**/*", "test/**/*"]
"include": ["src/**/*"],
"exclude": ["node_modules", "test"]
}