This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 564fefe  ARROW-2213: [JS] fix npm release
564fefe is described below

commit 564fefe68b6d7f255cc0712f446f09bf5b0908a2
Author: Paul Taylor <[email protected]>
AuthorDate: Mon Feb 26 14:14:59 2018 -0500

    ARROW-2213: [JS] fix npm release
    
    This should resolve https://issues.apache.org/jira/browse/ARROW-2213
    
    Author: Paul Taylor <[email protected]>
    
    Closes #1658 from trxcllnt/js-fix-npm-release and squashes the following 
commits:
    
    71273fa9 <Paul Taylor> specify unpkg key in apache-arrow module's 
package.json
    fd4d5be8 <Paul Taylor> npm publish via lerna exec
---
 js/gulp/package-task.js | 5 ++---
 js/npm-release.sh       | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/js/gulp/package-task.js b/js/gulp/package-task.js
index c42b3fc..3390da0 100644
--- a/js/gulp/package-task.js
+++ b/js/gulp/package-task.js
@@ -47,8 +47,7 @@ const createMainPackageJson = (target, format) => (orig) => ({
     main: mainExport,
     types: `${mainExport}.d.ts`,
     module: `${mainExport}.mjs`,
-    dist: `${mainExport}.es5.min.js`,
-    [`dist:es2015`]: `${mainExport}.es2015.min.js`,
+    unpkg: `${mainExport}.es5.min.js`,
     [`@std/esm`]: { esm: `mjs`, warnings: false, sourceMap: true }
 });
   
@@ -69,7 +68,7 @@ const createScopedPackageJSON = (target, format) => (({ name, 
...orig }) =>
             {
                 name: `${npmOrgName}/${packageName(target, format)}`,
                 version: undefined, main: `${mainExport}.js`, types: 
`${mainExport}.d.ts`,
-                dist: undefined, [`dist:es2015`]: undefined, module: 
undefined, [`@std/esm`]: undefined
+                unpkg: undefined, module: undefined, [`@std/esm`]: undefined
             }
         )
     )
diff --git a/js/npm-release.sh b/js/npm-release.sh
index 42cd73c..3ef24d3 100755
--- a/js/npm-release.sh
+++ b/js/npm-release.sh
@@ -27,4 +27,4 @@ npx run-s clean:all lint build
 npm run test
 
 # publish the JS target modules to npm
-npx lerna publish --yes --skip-git --force-publish=*
+npx lerna exec -- npm publish

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to