From cd4edd2ac07994132d9b6ffd1a8f4534fc1e845f Mon Sep 17 00:00:00 2001 From: Mircea Nistor Date: Fri, 21 May 2021 13:09:12 +0200 Subject: [PATCH] fix(build): produce non-minified output for module fixes #173 --- package.json | 22 +++++++++++----------- tsconfig.json | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 07990a6d..d65f8ddf 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,23 @@ { "name": "did-jwt", "version": "5.5.0", - "description": "Library for Signing and Verifying JWTs compatible uPort and DID standards", - "main": "lib/index.js", + "description": "Library for Signing and Verifying JWTs that use DIDs as issuers", "source": "src/index.ts", - "modules": "lib/index.mjs", - "types": "lib/index.d.ts", - "umd:main": "lib/index.umd.js", + "main": "./lib/index.js", + "exports": "./lib/index.modern.js", + "module": "./lib/index.module.js", + "unpkg": "./lib/index.umd.js", + "types": "./lib/index.d.ts", + "umd:main": "./lib/index.umd.js", "files": [ "lib", "dist", - "src", - "tutorial", - "esm" + "src" ], "scripts": { "test": "jest", "test:ci": "jest --coverage && codecov", - "build:js": "microbundle", + "build:js": "microbundle --compress=false", "build:browser": "webpack --config webpack.config.js", "build": "npm run build:js && npm test && npm run build:browser", "build:docs": "echo 'PLEASE UPDATE REFERENCE DOCS MANUALLY'", @@ -27,9 +27,9 @@ "prepare": "npm run build", "release": "semantic-release --debug" }, - "author": "Pelle Braendgaard ", + "author": "Pelle Braendgaard", "contributors": [ - "Mircea Nistor ", + "Mircea Nistor ", "Joel Thorstensson " ], "repository": { diff --git a/tsconfig.json b/tsconfig.json index a5a46a80..fbb9fc97 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "esm", /* Redirect output structure to the directory. */ + "outDir": "lib", /* Redirect output structure to the directory. */ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */ // "removeComments": true, /* Do not emit comments to output. */