Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F52019A93 for ; Fri, 4 Mar 2016 22:12:18 +0000 (UTC) Received: (qmail 61038 invoked by uid 500); 4 Mar 2016 22:12:17 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 60998 invoked by uid 500); 4 Mar 2016 22:12:17 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 60987 invoked by uid 99); 4 Mar 2016 22:12:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2016 22:12:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 192A31A00A8 for ; Fri, 4 Mar 2016 22:12:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.002 X-Spam-Level: X-Spam-Status: No, score=-3.002 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ouaPpuD_BQAH for ; Fri, 4 Mar 2016 22:12:14 +0000 (UTC) Received: from colo13.roaringpenguin.com (colo13.roaringpenguin.com [198.41.29.198]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 112675F39A for ; Fri, 4 Mar 2016 22:12:13 +0000 (UTC) Received: from out02.na01.msexchangeoutlook.com (out02.na01.msexchangeoutlook.com [64.151.108.166]) by colo13.roaringpenguin.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id u24MBENs027891 for ; Fri, 4 Mar 2016 17:12:05 -0500 Received: from out02.na01.msexchangeoutlook.com (unknown [192.168.66.194]) by out02.na01.msexchangeoutlook.com (Postfix) with ESMTP id C7C0E81000F for ; Fri, 4 Mar 2016 14:11:14 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by out02.na01.msexchangeoutlook.com (Postfix) with ESMTP id C35C8978002 for ; Fri, 4 Mar 2016 14:11:14 -0800 (PST) Received: from na02.msexchangeoutlook.com (lb-002-sv1.shared.themessagecenter.com [192.168.66.177]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by out02.na01.msexchangeoutlook.com (Postfix) with ESMTPS id 0DE68978004 for ; Fri, 4 Mar 2016 14:11:12 -0800 (PST) Received: from EXBE008SV3.NA02.MSEXCHANGEOUTLOOK.COM (192.168.67.138) by EXBE007SV3.NA02.MSEXCHANGEOUTLOOK.COM (192.168.67.137) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Fri, 4 Mar 2016 14:10:21 -0800 Received: from EXBE008SV3.NA02.MSEXCHANGEOUTLOOK.COM ([fe80::19b2:eabc:17d3:6db4]) by EXBE008SV3.NA02.MSEXCHANGEOUTLOOK.COM ([fe80::19b2:eabc:17d3:6db4%13]) with mapi id 15.00.1044.021; Fri, 4 Mar 2016 14:10:21 -0800 From: Dan Polivy To: "'dev@cordova.apache.org'" Subject: [DISCUSS] browserify not pulling correct platform cordova-js-src Thread-Topic: [DISCUSS] browserify not pulling correct platform cordova-js-src Thread-Index: AdF2Ya34tAjEZOjuRqyff3s1+UZ8cQ== Date: Fri, 4 Mar 2016 22:10:21 +0000 Message-ID: <277c6490ee3b4b80b44d0a365f021120@EXBE008SV3.NA02.MSEXCHANGEOUTLOOK.COM> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.64.7] Content-Type: multipart/alternative; boundary="_000_277c6490ee3b4b80b44d0a365f021120EXBE008SV3NA02MSEXCHANG_" MIME-Version: 1.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=64.151.108.166; country=US; region=California; city=San Francisco; latitude=37.7691; longitude=-122.4449; http://maps.google.com/maps?q=37.7691,-122.4449&z=6 X-CanItPRO-Stream: securembox-outbound:vdi-1102503 (inherits from securembox-outbound:default,outbound-container-realm:default,base:default) X-Canit-Stats-ID: 0bQpWbe4e - 09e790ddcd23 - 20160304 X-CanIt-Archive-Cluster: irqpXI7aJGyo4Ewta7qVH399FOg X-Scanned-By: CanIt (www . roaringpenguin . com) on 198.41.29.198 --_000_277c6490ee3b4b80b44d0a365f021120EXBE008SV3NA02MSEXCHANG_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi folks, I've recently updated my projects to the latest platform releases to pick u= p some specific fixes in the platform JS (android@5.1.1 and ios@4.1.0). I'm= using the browserify option, and have been trying to figure out why the br= owserify output is NOT including those fixes in the final compiled cordova.= js. After doing some digging, it seems that by default (with cordova@6.0.0)= the cordova-js/tasks/lib/bundle-browserify.js code is pulling from the glo= bal npm repository instead of the actual project root: \\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\cordova-lib\\= node_modules\\cordova-js\\src\\ Instead of \\platforms\\android\\platform_www\\cordova-js-src\\ As a result, the compiled cordova.js has the right PLATFORM_VERSION_BUILD_L= ABEL, but the wrong contents. It seems this is fixed by this commit: https://github.com/apache/cordova-lib/commit/28e8b33f6bb84b3e056cf71600e3c4= 719139061f I was going to file a bug on this, but since it is already resolved, I figu= red I would just raise it here and confirm 1) the "fixed" behavior is corre= ct, and 2) when would this fix make it out into the wild? Hopefully this do= esn't bite too many others in the meantime! Dan --_000_277c6490ee3b4b80b44d0a365f021120EXBE008SV3NA02MSEXCHANG_--