Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 36 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,49 +45,54 @@
"singleQuote": true
},
"dependencies": {
"big-integer": "^1.6.48",
"@babel/plugin-syntax-flow": "^7.16.7",
"@babel/plugin-transform-react-jsx": "^7.17.3",
"assert": "^2.0.0",
"big-integer": "^1.6.51",
"bn.js": "^5.2.0",
"bs58": "=4.0.1",
"bs58": "=5.0.0",
"buffer-compare": "=1.1.1",
"cashaddrjs": "^0.4.4",
"elliptic": "^6.5.3",
"elliptic": "^6.5.4",
"hash.js": "^1.1.7",
"lodash": "^4.17.15",
"lodash": "^4.17.21",
"randombytes": "^2.1.0",
"unorm": "^1.6.0"
"unorm": "^1.6.0",
"url": "^0.11.0"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-flow": "^7.9.0",
"@babel/register": "^7.9.0",
"babel-eslint": "^10.1.0",
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-flow": "^7.16.7",
"@babel/register": "^7.17.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-inject": "^4.0.4",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"babel-preset-minify": "^0.5.1",
"chai": "^4.2.0",
"eslint": "^7.0.0",
"eslint-config-airbnb-base": "^14.1.0",
"chai": "^4.3.6",
"eslint": "^8.9.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-flowtype": "^5.1.0",
"eslint-plugin-flowtype-errors": "^4.3.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^3.1.3",
"flow-bin": "^0.157.0",
"flow-typed": "^3.1.0",
"jsdoc": "^3.6.4",
"mocha": "^9.0.3",
"mustache": "^4.0.1",
"nyc": "^15.0.1",
"prettier": "^2.0.5",
"rollup": "^2.10.5",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-flowtype-errors": "^4.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"flow-bin": "^0.172.0",
"flow-typed": "^3.6.1",
"jsdoc": "^3.6.10",
"mocha": "^9.2.0",
"mustache": "^4.2.0",
"nyc": "^15.1.0",
"prettier": "^2.5.1",
"rollup": "^2.67.3",
"rollup-plugin-flow": "^1.1.1",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-polyfill-node": "^0.8.0",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^11.1.2"
"sinon": "^13.0.1"
}
}
17 changes: 13 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
* must be enabled at the top level and in terser for minified builds.
*/

import babel from 'rollup-plugin-babel'
import babel from '@rollup/plugin-babel'
import builtins from 'rollup-plugin-node-builtins'
import commonjs from 'rollup-plugin-commonjs'
import commonjs from '@rollup/plugin-commonjs'
import flow from 'rollup-plugin-flow'
import globals from 'rollup-plugin-node-globals'
import json from 'rollup-plugin-json'
import resolve from 'rollup-plugin-node-resolve'
import json from '@rollup/plugin-json'
import resolve from '@rollup/plugin-node-resolve'
import pkg from './package.json'
import { terser } from 'rollup-plugin-terser'
import nodePolyfills from 'rollup-plugin-polyfill-node'

// The text to appear at the top of the generated files.
const license = `/**
Expand Down Expand Up @@ -64,6 +65,7 @@ const dependencies = nodeDependencies.concat(packageDependencies)
// Define our default babel plugin config
const babelPluginConfig = {
// Prefer the config below over babelrc
babelHelpers: 'bundled',
babelrc: false,
presets: [
// Disable converting modules because rollup will do this better
Expand All @@ -74,6 +76,7 @@ const babelPluginConfig = {
// Define our babel plugin config when generating minified builds
const babelPluginMinifiedConfig = {
// Prefer the config below over babelrc
babelHelpers: 'bundled',
babelrc: false,
presets: [
// Disable converting modules because rollup will do this better
Expand Down Expand Up @@ -168,6 +171,9 @@ const browser = {
plugins: [
flow(),
json(),
nodePolyfills({
include: './src/*',
}),
// Parse require() statements in any dependencies. Any non-commonjs modules will be ignored,
// so we can run this across all dependencies, but bitcoin source files must use ES6 imports.
// We prefer builtins like util over our own util.
Expand All @@ -192,6 +198,9 @@ const browserMin = {
plugins: [
flow(),
json(),
nodePolyfills({
include: './src/*',
}),
commonjs({ preferBuiltins: true }),
resolve({ browser: true, preferBuiltins: true }),
globals(),
Expand Down
Loading