Explorar o código

grunt: replace <json:> directive with readJSON()

Manfred Kroehnert %!s(int64=12) %!d(string=hai) anos
pai
achega
81d4d8fa0d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Gruntfile.js

+ 1 - 1
Gruntfile.js

@@ -9,7 +9,7 @@ module.exports = function(grunt) {
   grunt.registerTask('default', 'peg amberc:all');
 
   grunt.initConfig({
-    pkg: '<json:package.json>',
+    pkg: grunt.file.readJSON('package.json'),
 
     meta: {
       banner: '/*!\n <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> \n License: <%= pkg.license.type %> \n*/\n'