Skip to content

Commit 1b3ea83

Browse files
Merge pull request #7699 from BitGo/revert-7684-ananth/SCAAS-2084-sdk-core-esm
2 parents c31576a + 07cbb11 commit 1b3ea83

File tree

4 files changed

+6
-42
lines changed

4 files changed

+6
-42
lines changed

modules/sdk-core/package.json

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,15 @@
22
"name": "@bitgo/sdk-core",
33
"version": "36.22.0",
44
"description": "core library functions for BitGoJS",
5-
"main": "./dist/cjs/src/index.js",
6-
"module": "./dist/esm/index.js",
7-
"browser": "./dist/esm/index.js",
8-
"types": "./dist/cjs/src/index.d.ts",
5+
"main": "./dist/src/index.js",
6+
"types": "./dist/src/index.d.ts",
97
"files": [
10-
"dist/cjs",
11-
"dist/esm"
8+
"dist"
129
],
13-
"exports": {
14-
".": {
15-
"import": {
16-
"types": "./dist/esm/index.d.ts",
17-
"default": "./dist/esm/index.js"
18-
},
19-
"require": {
20-
"types": "./dist/cjs/src/index.d.ts",
21-
"default": "./dist/cjs/src/index.js"
22-
}
23-
}
24-
},
2510
"scripts": {
2611
"test": "yarn unit-test",
2712
"unit-test": "nyc -- mocha --recursive test",
28-
"build": "yarn build:cjs && yarn build:esm",
29-
"build:cjs": "yarn tsc --build --incremental --verbose .",
30-
"build:esm": "yarn tsc --project tsconfig.esm.json",
13+
"build": "yarn tsc --build --incremental --verbose .",
3114
"fmt": "prettier --write .",
3215
"check-fmt": "prettier --check '**/*.{ts,js,json}'",
3316
"clean": "rm -r ./dist",

modules/sdk-core/src/bitgo/tss/eddsa/eddsa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
} from '../../utils';
2424
import { BaseTransaction } from '../../../account-lib';
2525
import { Ed25519Bip32HdTree } from '@bitgo/sdk-lib-mpc';
26-
import _ from 'lodash';
26+
import _ = require('lodash');
2727
import { commonVerifyWalletSignature, getTxRequest, sendSignatureShare } from '../common';
2828
import { IRequestTracer } from '../../../api';
2929

modules/sdk-core/tsconfig.esm.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

modules/sdk-core/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "./dist/cjs",
4+
"outDir": "./dist",
55
"rootDir": "./",
6-
"module": "node16",
7-
"moduleResolution": "node16",
86
"strictPropertyInitialization": false,
97
"esModuleInterop": true,
108
"typeRoots": ["../../types", "./node_modules/@types", "../../node_modules/@types"]

0 commit comments

Comments
 (0)