Support ESM with yarn node

This commit is contained in:
willclarktech 2021-05-26 12:59:41 +02:00
parent 139fe5bfed
commit 49e0329943
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
39 changed files with 95 additions and 37 deletions

31
.pnp.js generated
View File

@ -1276,6 +1276,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"eslint-visitor-keys",
"npm:2.1.0"
],
[
"esm",
"npm:3.2.25"
],
[
"espree",
"npm:7.3.1"
@ -3245,6 +3249,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3304,6 +3309,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["jasmine", "npm:3.7.0"],
["jasmine-spec-reporter", "npm:6.0.0"],
["nyc", "npm:15.1.0"],
@ -3365,6 +3371,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3421,6 +3428,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3480,6 +3488,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3530,6 +3539,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3580,6 +3590,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["jasmine", "npm:3.7.0"],
["jasmine-spec-reporter", "npm:6.0.0"],
["koa", "npm:2.13.1"],
@ -3615,6 +3626,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3657,6 +3669,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3706,6 +3719,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["fast-deep-equal", "npm:3.1.3"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
@ -3761,6 +3775,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-spec-reporter", "npm:6.0.0"],
@ -3801,6 +3816,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3849,6 +3865,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3895,6 +3912,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["isomorphic-ws", "virtual:992e8a49329af27dec1603ba7ec6f83173fb73e1d5752e95d78d0bec9ff8e148a218f65e20742125a49b958677fd4d6119ec35f9c56f9b4ea72f0e32f53b591b#npm:4.0.1"],
["jasmine", "npm:3.7.0"],
@ -3950,6 +3968,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -3997,6 +4016,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -4048,6 +4068,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -4093,6 +4114,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["eslint-plugin-import", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:2.23.2"],
["eslint-plugin-prettier", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:3.4.0"],
["eslint-plugin-simple-import-sort", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:7.0.0"],
["esm", "npm:3.2.25"],
["glob", "npm:7.1.7"],
["jasmine", "npm:3.7.0"],
["jasmine-core", "npm:3.7.1"],
@ -7889,6 +7911,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"linkType": "HARD",
}]
]],
["esm", [
["npm:3.2.25", {
"packageLocation": "./.yarn/cache/esm-npm-3.2.25-762b3ebd40-12a0272aaa.zip/node_modules/esm/",
"packageDependencies": [
["esm", "npm:3.2.25"]
],
"linkType": "HARD",
}]
]],
["espree", [
["npm:7.3.1", {
"packageLocation": "./.yarn/cache/espree-npm-7.3.1-8d8ea5d1e3-ff8e0f7393.zip/node_modules/espree/",

BIN
.yarn/cache/esm-npm-3.2.25-762b3ebd40-12a0272aaa.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -27,7 +27,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -59,6 +59,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,5 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
require("source-map-support").install();
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");

View File

@ -23,7 +23,7 @@
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"start": "yarn build-or-skip && ./bin/cosmwasm-cli",
"selftest": "yarn build-or-skip && ./bin/cosmwasm-cli --selftest",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test": "yarn build-or-skip && yarn test-node",
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet"
},
@ -75,6 +75,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"jasmine": "^3.5",
"jasmine-spec-reporter": "^6",
"nyc": "^15.1.0",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -30,7 +30,7 @@
"format-text": "prettier --write \"./*.md\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
"test": "yarn build-or-skip && yarn test-node",
@ -62,6 +62,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
"test": "yarn build-or-skip && yarn test-node",
@ -70,6 +70,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -28,7 +28,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -73,6 +73,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -27,7 +27,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -60,6 +60,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -27,7 +27,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -57,6 +57,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -31,7 +31,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test": "yarn build-or-skip && yarn test-node",
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
"start-dev": "FAUCET_ADDRESS_PREFIX=wasm FAUCET_CREDIT_AMOUNT_UCOSM=10000000 FAUCET_CREDIT_AMOUNT_USTAKE=100000 FAUCET_CONCURRENCY=3 FAUCET_MNEMONIC=\"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone\" ./bin/cosmos-faucet start \"http://localhost:26659\"",
@ -64,6 +64,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"jasmine": "^3.5",
"jasmine-spec-reporter": "^6",
"nyc": "^15.1.0",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -59,6 +59,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -30,7 +30,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
"test": "yarn build-or-skip && yarn test-node",
@ -62,6 +62,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./{,demo/}*.js\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test": "yarn build-or-skip && yarn test-node",
"demo-node": "yarn build-or-skip && node ./demo/node.js",
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
@ -65,6 +65,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-spec-reporter": "^6",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -27,7 +27,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -58,6 +58,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -30,7 +30,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
"test": "yarn build-or-skip && yarn test-node",
@ -65,6 +65,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -62,6 +62,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"format-text": "prettier --write \"./*.md\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
"test": "yarn build-or-skip && yarn test-node",
@ -69,6 +69,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -59,6 +59,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"lint-fix": "eslint --fix --max-warnings 0 \"./**/*.ts\" \"./*.js\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write \"./*.md\"",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test-edge": "yarn pack-web && karma start --single-run --browsers Edge",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
@ -68,6 +68,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -1,4 +1,3 @@
#!/usr/bin/env -S yarn node
/* eslint-disable @typescript-eslint/naming-convention */
if (process.env.SES_ENABLED) {

View File

@ -29,7 +29,7 @@
"format-text": "prettier --write \"./*.md\"",
"build": "rm -rf ./build && tsc",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-node": "node --require esm jasmine-testrunner.js",
"test": "yarn build-or-skip && yarn test-node",
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js",
@ -55,6 +55,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"esm": "^3.2.25",
"glob": "^7.1.6",
"jasmine": "^3.5",
"jasmine-core": "^3.7.1",

View File

@ -317,6 +317,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -374,6 +375,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
jasmine: ^3.5
jasmine-spec-reporter: ^6
nyc: ^15.1.0
@ -413,6 +415,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -467,6 +470,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -544,6 +548,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -592,6 +597,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -634,6 +640,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -681,6 +688,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
jasmine: ^3.5
jasmine-spec-reporter: ^6
koa: ^2.11.0
@ -715,6 +723,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -762,6 +771,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
fast-deep-equal: ^3.1.3
glob: ^7.1.6
jasmine: ^3.5
@ -815,6 +825,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-spec-reporter: ^6
@ -853,6 +864,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -899,6 +911,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -943,6 +956,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
isomorphic-ws: ^4.0.1
jasmine: ^3.5
@ -996,6 +1010,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -1041,6 +1056,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -1090,6 +1106,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -1133,6 +1150,7 @@ __metadata:
eslint-plugin-import: ^2.22.1
eslint-plugin-prettier: ^3.4.0
eslint-plugin-simple-import-sort: ^7.0.0
esm: ^3.2.25
glob: ^7.1.6
jasmine: ^3.5
jasmine-core: ^3.7.1
@ -3678,6 +3696,13 @@ __metadata:
languageName: node
linkType: hard
"esm@npm:^3.2.25":
version: 3.2.25
resolution: "esm@npm:3.2.25"
checksum: 12a0272aaa15ce4bc07e52cbb66d471cf56ad81ad1a3c1d9f6fa1e29e8c2712716333825e2572f9dbdfdc787e5717a75cb00ce2846e2a50e2bba6971c24402f3
languageName: node
linkType: hard
"espree@npm:^7.3.0, espree@npm:^7.3.1":
version: 7.3.1
resolution: "espree@npm:7.3.1"