Skip to content

Commit

Permalink
Merge pull request #8 from MetaMask/build-to-dist
Browse files Browse the repository at this point in the history
build to dist
  • Loading branch information
rickycodes committed Sep 13, 2022
2 parents 5ba346c + 855ebc9 commit 293a0d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
/test/*.d.ts
/test/*.js
/node_modules
/dist
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"description": "MetaMask fork of @scure/bip39: a secure, audited & minimal implementation of BIP39 mnemonic phrases",
"main": "index.js",
"files": [
"index.js",
"index.d.ts",
"wordlists/*.js",
"wordlists/*.d.ts"
"dist/"
],
"types": "index.d.ts",
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions test/bip39.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
mnemonicToSeed,
mnemonicToSeedSync,
validateMnemonic,
} from '..';
import { wordlist as englishWordlist } from '../wordlists/english';
import { wordlist as japaneseWordlist } from '../wordlists/japanese';
import { wordlist as spanishWordlist } from '../wordlists/spanish';
} from '../dist';
import { wordlist as englishWordlist } from '../dist/wordlists/english';
import { wordlist as japaneseWordlist } from '../dist/wordlists/japanese';
import { wordlist as spanishWordlist } from '../dist/wordlists/spanish';
import { bytesToHex as toHex } from '@noble/hashes/utils';
import { deepStrictEqual, throws } from './assert';

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"rootDirs": [
"."
],
"outDir": ".",
"outDir": "./dist",
"sourceMap": false,
"noUnusedLocals": true,
"declaration": true,
Expand All @@ -17,4 +17,4 @@
"src"
],
"exclude": ["node_modules", "./*.d.ts", "./test/*.d.ts"]
}
}

0 comments on commit 293a0d7

Please sign in to comment.