You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/05/09 10:01:50 UTC
[incubator-annotator] 01/09: Upgrade esm
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit a3217a6893aeb33a45deeca8f79be9087e2bd935
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 9 02:52:01 2019 -0700
Upgrade esm
---
.nycrc | 3 ++-
package.json | 6 +++---
test/mocha.opts | 1 -
yarn.lock | 10 +++++++---
4 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/.nycrc b/.nycrc
index f01ed05..90fb7e7 100644
--- a/.nycrc
+++ b/.nycrc
@@ -3,5 +3,6 @@
"packages/*/test"
],
"instrument": false,
- "sourceMap": false
+ "sourceMap": false,
+ "require": ["esm", "@babel/register"]
}
diff --git a/package.json b/package.json
index a5e49f0..08f5cad 100644
--- a/package.json
+++ b/package.json
@@ -18,8 +18,8 @@
"lint": "eslint . --ext js,mjs --fix --quiet",
"prepare": "lerna run prepare",
"start": "webpack-dev-server",
- "test": "cross-env BABEL_ENV=test nyc mocha -r esm packages/*/test/**/*.js",
- "validate": "cross-env BABEL_ENV=test nyc mocha -r esm test/**/*.js"
+ "test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.js",
+ "validate": "cross-env BABEL_ENV=test nyc mocha test/**/*.js"
},
"devDependencies": {
"@babel/cli": "^7.4.0",
@@ -44,7 +44,7 @@
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-prettier": "^3.0.1",
- "esm": "^3.0.49",
+ "esm": "^3.2.22",
"husky": "^1.3.1",
"lerna": "^3.13.4",
"lint-staged": "^8.1.5",
diff --git a/test/mocha.opts b/test/mocha.opts
index e637792..ad74b47 100644
--- a/test/mocha.opts
+++ b/test/mocha.opts
@@ -1,4 +1,3 @@
--r @babel/register
-r chai/register-assert
--recursive
--watch-extensions mjs
diff --git a/yarn.lock b/yarn.lock
index b9fbd04..38f5de7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3527,9 +3527,10 @@ eslint@^5.16.0:
table "^5.2.3"
text-table "^0.2.0"
-esm@^3.0.49:
- version "3.0.49"
- resolved "https://registry.yarnpkg.com/esm/-/esm-3.0.49.tgz#24e2a305c742f9565f2ededa5665493347f8a412"
+esm@^3.2.22:
+ version "3.2.22"
+ resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.22.tgz#5062c2e22fee3ccfee4e8f20da768330da90d6e3"
+ integrity sha512-z8YG7U44L82j1XrdEJcqZOLUnjxco8pO453gKOlaMD1/md1n/5QrscAmYG+oKUspsmDLuBFZrpbxI6aQ67yRxA==
espree@^5.0.1:
version "5.0.1"
@@ -4391,6 +4392,7 @@ hasha@^3.0.0:
he@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
+ integrity sha1-k0EP0hsAlzUVH4howvJx80J+I/0=
hmac-drbg@^1.0.0:
version "1.0.1"
@@ -5926,6 +5928,7 @@ mocha-loader@^2.0.1:
mocha@^5.0.5:
version "5.2.0"
resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.2.0.tgz#6d8ae508f59167f940f2b5b3c4a612ae50c90ae6"
+ integrity sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==
dependencies:
browser-stdout "1.3.1"
commander "2.15.1"
@@ -8142,6 +8145,7 @@ style-loader@^0.23.1:
supports-color@5.4.0:
version "5.4.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54"
+ integrity sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==
dependencies:
has-flag "^3.0.0"