@@ -40,6 +40,7 @@ module.exports = function(grunt) {
4040 } ;
4141
4242 var updateModulesPackageDef = function ( content , srcPath ) {
43+ console . log ( "Patch: " + srcPath ) ;
4344 return updatePackageDef ( content , function ( contentAsObject ) {
4445 contentAsObject . version = localCfg . packageVersion ;
4546 if ( localCfg . commitSHA ) {
@@ -276,8 +277,9 @@ module.exports = function(grunt) {
276277 } ,
277278 modulesPackageDef : {
278279 expand : true ,
279- src : localCfg . packageJsonFilePath ,
280- dest : localCfg . outDir + "/" ,
280+ src : path . basename ( localCfg . packageJsonFilePath ) ,
281+ cwd : path . dirname ( localCfg . packageJsonFilePath ) ,
282+ dest : localCfg . outTnsCoreModules + "/" ,
281283 options : {
282284 process : updateModulesPackageDef
283285 }
@@ -724,6 +726,7 @@ module.exports = function(grunt) {
724726 grunt . registerTask ( "pack-modules" , [
725727 "compile-modules" ,
726728 "node-tests" ,
729+ "copy:modulesPackageDef" ,
727730 "exec:packModules"
728731 ] ) ;
729732 grunt . registerTask ( "pack-apps" , [
@@ -752,7 +755,6 @@ module.exports = function(grunt) {
752755 "check-packagejson-boms" ,
753756 "compile-ts" ,
754757 "collect-modules-raw-files" ,
755- "copy:modulesPackageDef" ,
756758 "copy:definitionFiles" ,
757759 "copy:jsLibs" ,
758760 "generate-tns-core-modules-dts" ,
0 commit comments