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:
commit
dc64981aa1
@ -7,8 +7,7 @@
|
||||
},
|
||||
"project": [
|
||||
"./tsconfig.json",
|
||||
"./test/unit/tsconfig.json",
|
||||
"./test/integration/tsconfig.json"
|
||||
"./test/tsconfig.json",
|
||||
]
|
||||
},
|
||||
"extends": ["oceanprotocol", "plugin:prettier/recommended"],
|
||||
|
@ -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",
|
||||
|
@ -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"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user