File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -302,14 +302,12 @@ module.exports = function(grunt) {
302
302
return ! / \. m i n \. / . test ( f )
303
303
&& ! / ^ b o w e r \. j s o n $ / . test ( f )
304
304
&& ! / ^ p a c k a g e \. j s o n $ / . test ( f ) ;
305
- } )
306
- // Preprend "./" to each file path
307
- . map ( function ( f ) { return './' + f ; } ) ;
305
+ } ) ;
308
306
309
307
// Copy a README file
310
308
var readme = path . resolve ( projectPath , 'misc/publish/README.md' ) ;
311
309
shell . cp ( '-f' , readme , taggedReleaseDir ) ;
312
-
310
+
313
311
var bowerJsonFile = path . join ( taggedReleaseDir , 'bower.json' ) ;
314
312
var pkgJsonFile = path . join ( taggedReleaseDir , 'package.json' ) ;
315
313
@@ -330,8 +328,10 @@ module.exports = function(grunt) {
330
328
331
329
fs . writeFileSync ( bowerJsonFile , JSON . stringify ( json , null , 2 ) ) ;
332
330
333
- // Add version for package.json
331
+ // For package.json
334
332
json . version = currentTag ;
333
+ json . main = "ui-grid.js" ;
334
+ json . files = releaseFiles ;
335
335
336
336
fs . writeFileSync ( pkgJsonFile , JSON . stringify ( json , null , 2 ) ) ;
337
337
} ) ;
You can’t perform that action at this time.
0 commit comments