I don't see any error when platform is published on npm w/o subfolder. I tested this a few weeks ago using my own temporary package (https://www.npmjs.org/package/cordova-windows-test) and with 3.6.0 (https://www.npmjs.org/package/cordova-windows/3.6.0) - see output below.
Looks like the following issue has been addressed as well, will resolve after additional tests for non-Windows platforms CB-7031 --usenpm option should place downloaded package to util.libDirectory C:\temp\win81 λ cordova-dev create npmTest Creating a new cordova project with name "HelloCordova" and id "io.cordova.hellocordova" at location "C:\temp\win81\npmTest" C:\temp\win81 λ cd npmTest\ C:\temp\win81\npmTest λ cordova-dev platform add windows npm http GET https://registry.npmjs.org/cordova-windows/3.6.0 npm http 200 https://registry.npmjs.org/cordova-windows/3.6.0 npm http GET https://registry.npmjs.org/cordova-windows/-/cordova-windows-3.6.0.tgz npm http 200 https://registry.npmjs.org/cordova-windows/-/cordova-windows-3.6.0.tgz Creating windows project... Creating Cordova Windows Project: App Name : HelloCordova Namespace : io.cordova.hellocordova Path : C:\temp\win81\npmTest\platforms\windows Copying template to C:\temp\win81\npmTest\platforms\windows C:\temp\win81\npmTest λ cordova-dev build windows Running command: C:\temp\win81\npmTest\platforms\windows\cordova\build.bat MSBuildToolsPath: C:\Program Files (x86)\MSBuild\12.0\bin\amd64\ Applying Platform Config... Building project: C:\temp\win81\npmTest\platforms\windows\CordovaApp.Windows80.jsproj Configuration : debug Platform : anycpu CordovaApp.Windows80 -> C:\temp\win81\npmTest\platforms\windows\AppPackag es\CordovaApp.Windows80_0.0.1.0_anycpu_debug_Test\CordovaApp.Windows80_0. 0.1.0_anycpu_debug.appx CordovaApp.Windows80 -> C:\temp\win81\npmTest\platforms\windows\AppPackag es\CordovaApp.Windows80_0.0.1.0_anycpu_debug.appxupload Your package has been successfully created. Building project: C:\temp\win81\npmTest\platforms\windows\CordovaApp.Phone.jsproj Configuration : debug Platform : anycpu CordovaApp.Phone -> C:\temp\win81\npmTest\platforms\windows\AppPackages\C ordovaApp.Phone_0.0.1.0_anycpu_debug_Test\CordovaApp.Phone_0.0.1.0_anycpu _debug.appx CordovaApp.Phone -> C:\temp\win81\npmTest\platforms\windows\AppPackages\C ordovaApp.Phone_0.0.1.0_anycpu_debug.appxupload Your package has been successfully created. Thx! Sergey -----Original Message----- From: Jesse [mailto:purplecabb...@gmail.com] Sent: Saturday, September 6, 2014 5:03 AM To: dev@cordova.apache.org Subject: Re: [Vote] 3.6.1 Cadence Release (redo of 3.6.0) I have updated cordova-windows, and cordova-wp8 and retagged 3.6.1 I am not sure if these will fail in an npm published world, and it is not easy to test, so I am not sure what to do next. https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/platforms.js#L53 https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/platforms.js#L76 These subdirs are used throughout cordova-lib, however they only exist when the platform came from git. @purplecabbage risingj.com On Fri, Sep 5, 2014 at 5:17 PM, Jesse <purplecabb...@gmail.com> wrote: > The npm publish path for cordova-windows and cordova-wp8 is hopelessly > broken in a world where we are not using --usegit as the default. > > There were many requirements added by using npm as the main > distribution mechanism that weren't considered. Namely, cordova-wp8 > and cordova-windows both used include multiple platforms so the root > of the repo is NOT the root of the platform. > > In order for me to resolve these issues, I will need to change > cordova-wp8, cordova-windows, cordova-lib, and cordova-plugman > > I think we have to consider this vote thread dead. > -1 > > > > > > @purplecabbage > risingj.com > > > On Fri, Sep 5, 2014 at 4:15 PM, Jesse <purplecabb...@gmail.com> wrote: > >> Okay, thanks to Carlos! >> >> CI is green for master and 3.6.x >> >> I have retagged 3.6.x current HEAD as 3.6.1 and we can rebuild the >> packages for those only. >> >> I am seeing an issue with the tarballs for windows+wp8 The repos both >> need to be packaged from the root of the repo, and not the child >> folder windows/wp8 respectively. >> >> I am not sure if this is a coho packaging issue, or if there is >> something else that Steve does, but I will look into the coho stuff >> so we can get this process to be so simple we can release and vote every 3 >> days .... >> >> >> @purplecabbage >> risingj.com >> >> >> On Fri, Sep 5, 2014 at 2:35 PM, Carlos Santana <csantan...@gmail.com> >> wrote: >> >>> +1 on having CI for platforms repos >>> >>> >>> On Fri, Sep 5, 2014 at 5:34 PM, Carlos Santana >>> <csantan...@gmail.com> >>> wrote: >>> >>> > Jesse need to make up your mind on node_modules >>> > >>> > there is a diff between master and 3.6.x >>> > >>> > Need to make a decision on where you want "node_modules" with the >>> checkin >>> > files >>> > either in root along side package.json, or if inside >>> > bin\node_modules >>> then >>> > need to remove the "dependencies and bundleDependecies" from >>> package.json >>> > >>> > Also the error is related to missing files inside >>> "node_modules/nopt/bin" >>> > the top .gitignore is ignoring "bin" so "nopt\bin" is not present >>> > in >>> git >>> > >>> > >>> > >>> > On Fri, Sep 5, 2014 at 5:18 PM, Jesse <purplecabb...@gmail.com> wrote: >>> > >>> >> I am on it. node_modules issue >>> >> >>> >> cordova-windows also has appveyor smoke tests >>> >> >>> >> @purplecabbage >>> >> risingj.com >>> >> >>> >> >>> >> On Fri, Sep 5, 2014 at 2:12 PM, Marcel Kinard >>> >> <cmarc...@gmail.com> >>> wrote: >>> >> >>> >> > Is this something you can look at, or are you out of time >>> >> > because of >>> >> your >>> >> > move and could use some help? >>> >> > >>> >> > On Sep 5, 2014, at 4:58 PM, Jesse <purplecabb...@gmail.com> wrote: >>> >> > >>> >> > > WP8 build is failing >>> >> > > https://ci.appveyor.com/project/Humbedooh/cordova-wp8 >>> >> > >>> >> > >>> >> >>> > >>> > >>> > >>> > -- >>> > Carlos Santana >>> > <csantan...@gmail.com> >>> > >>> >>> >>> >>> -- >>> Carlos Santana >>> <csantan...@gmail.com> >>> >> >> >