Skip to content

Commit

Permalink
build tool tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Jan 11, 2022
1 parent 455d334 commit b7b7d8f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
"source": "./src/index.ts",
"version": "1.0.0-next.0",
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/node/lib.js",
"exports": "./dist/node/lib.js",
"module": "./dist/node/lib.module.js",
"typings": "./dist/node/index.d.ts",
"umd:main": "dist/node/lib.umd.js",
"unpkg": "./dist/node/lib.cjs2.min.js",
"main": "./dist/lib.js",
"umd:main": "dist/lib.umd.js",
"module": "./dist/lib.module.js",
"exports": {
"require": "./dist/lib.js",
"default": "./dist/lib.modern.js"
},
"typings": "./dist/src/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 umd,cjs,es --compress --target node --tsconfig tsconfig.json",
"build": "npm run clean && npm run build:metadata && microbundle build --format modern,esm,cjs,umd --compress --tsconfig tsconfig.json",
"build:tsc": "tsc --sourceMap",
"build:metadata": "node ./scripts/get-metadata.js > src/metadata.json",
"clean": "rm -rf ./dist/ ./doc/ ./.nyc_output",
Expand Down
15 changes: 6 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
"moduleResolution": "node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"lib": ["es2017", "es6", "es7", "dom"],
"lib": ["ESNext", "dom"],
"declaration": true,
"module": "commonjs",
"target": "es5",
"module": "ESNext",
"target": "ESNext",
"removeComments": true,
"experimentalDecorators": true,
"preserveConstEnums": true,
"outDir": "./dist/node/",
"rootDir": ".",
"sourceMap": true,
"typeRoots": ["node_modules/@types"]
"outDir": "./dist/",
"sourceMap": true
},
"include": ["src/**/*", "artifacts/**/*"],
"exclude": ["node_modules", "**/*.test.ts"]
"include": ["src/**/*"]
}

0 comments on commit b7b7d8f

Please sign in to comment.