Skip to content

Commit

Permalink
Merge pull request #1862 from oceanprotocol/1850-add-a-type-declarati…
Browse files Browse the repository at this point in the history
…on-file

generate types to dist/types
  • Loading branch information
paulo-ocean authored Oct 30, 2024
2 parents 0e42ce3 + bae1874 commit dc64981
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
},
"project": [
"./tsconfig.json",
"./test/unit/tsconfig.json",
"./test/integration/tsconfig.json"
"./test/tsconfig.json",
]
},
"extends": ["oceanprotocol", "plugin:prettier/recommended"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit dc64981

Please sign in to comment.