Skip to content

Commit 88a1ad5

Browse files
committed
Don't copy around packages from node_modules anymore.
tns 1.1.2+ does it for us already.
1 parent 0aafce5 commit 88a1ad5

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

ng-sample/gruntfile.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,6 @@ module.exports = function(grunt) {
8080
],
8181
dest: 'app/tns_modules',
8282
},
83-
tnsifyNpmDeps: {
84-
expand: true,
85-
cwd: 'node_modules/',
86-
src: [
87-
"reflect-metadata/**/*",
88-
"rtts_assert/**/*",
89-
"zone.js/**/*",
90-
"rx/**/*",
91-
"parse5/**/*",
92-
"punycode/**/*",
93-
"querystring/**/*",
94-
"url/**/*",
95-
],
96-
dest: 'app/tns_modules',
97-
},
9883
},
9984
});
10085

@@ -159,7 +144,7 @@ module.exports = function(grunt) {
159144
grunt.registerTask("prepareQuerystringPackage", function() {
160145
//The {N} require doesn't look for index.js automatically
161146
//so we need to declare it as main
162-
var packagePath = "app/tns_modules/querystring/package.json";
147+
var packagePath = "node_modules/querystring/package.json";
163148

164149
var packageData = grunt.file.readJSON(packagePath);
165150
packageData.main = './index.js';
@@ -168,7 +153,6 @@ module.exports = function(grunt) {
168153

169154
grunt.registerTask("prepareTnsModules", [
170155
"copy:tnsifyAngular",
171-
"copy:tnsifyNpmDeps",
172156
"prepareQuerystringPackage",
173157
]);
174158

0 commit comments

Comments
 (0)