From 76e503bc4307d313681a245665250932c98bcd64 Mon Sep 17 00:00:00 2001 From: Stefan Adolf Date: Mon, 20 Jul 2020 13:21:21 +0200 Subject: [PATCH] fix(build): use commonjs module format (#46) fixes #47 - usage from create react app --- src/__tests__/converters.test.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/converters.test.ts b/src/__tests__/converters.test.ts index 9906229..9e3b69f 100644 --- a/src/__tests__/converters.test.ts +++ b/src/__tests__/converters.test.ts @@ -691,7 +691,7 @@ describe('credential', () => { const input = { '@context': ['https://www.w3.org/2018/credentials/v1'], type: ['VerifiableCredential'], - issuer: { id: 'did:example:567'}, + issuer: { id: 'did:example:567' }, issuanceDate: '2020-07-02T09:58:10.284Z', credentialSubject: { id: 'did:example:123', foo: 'bar' } } diff --git a/tsconfig.json b/tsconfig.json index ebf33e0..2984e7c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { /* Basic Options */ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ - "module": "umd", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": ["dom", "es6","es2015.promise"], /* Specify library files to be included in the compilation. */ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */