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:55 UTC
[incubator-annotator] 06/09: Output build formats to different
directories
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 a0eb1ebb68fcffda8a86e8a4cef6b6d08c86222c
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 9 02:57:34 2019 -0700
Output build formats to different directories
---
.eslintignore | 1 +
.gitignore | 1 +
package.json | 7 +++----
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.eslintignore b/.eslintignore
index 038512d..8b9639d 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,4 +1,5 @@
/coverage
+/packages/*/esm/*
/packages/*/lib/*
/packages/*/node_modules/*
/packages/fragment-identifier/src/fragment.js
diff --git a/.gitignore b/.gitignore
index 4c9af02..610fa82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
.nyc_output
coverage
node_modules
+/packages/*/esm
/packages/*/lib
diff --git a/package.json b/package.json
index b940b86..82b2284 100644
--- a/package.json
+++ b/package.json
@@ -10,10 +10,9 @@
"url": "https://gitbox.apache.org/repos/asf/incubator-annotator.git"
},
"scripts": {
- "build": "yarn build:cjs && yarn build:esm",
- "build:cjs": "cross-env BABEL_ENV=cjs yarn build:run",
- "build:esm": "cross-env BABEL_ENV=esm yarn build:run --keep-file-extension",
- "build:run": "lerna exec --parallel -- babel -d lib src --config-file ../../babel.config.js",
+ "build": "lerna exec --parallel -- babel --root-mode upward -d lib src",
+ "build:cjs": "cross-env BABEL_ENV=cjs yarn build:babel -d lib src",
+ "build:esm": "cross-env BABEL_ENV=esm yarn build:babel -d esm src",
"clean": "lerna exec -- rimraf lib",
"lint": "eslint . --ext js,mjs --fix --quiet",
"prepare": "lerna run prepare",