Skip to content

Commit 0d2c256

Browse files
sis0k0hdeshev
authored andcommitted
Revert "build: fix animations bundle on postinstall"
This reverts commit 960702b.
1 parent 105a737 commit 0d2c256

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Diff for: nativescript-angular/postinstall.js

-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
var fs = require("fs");
22
var os = require("os");
3-
var path = require("path");
43
var hookHelper = require("./hooks/hook-helper");
54
var projectDir = hookHelper.findProjectDir();
65

76
if (projectDir) {
8-
var bundlePath = path.join(projectDir, "node_modules/@angular/animations/browser/package.json");
9-
10-
try {
11-
var content = require(bundlePath);
12-
content.main = "../bundles/animations-browser.umd.js";
13-
console.log(content)
14-
fs.writeFileSync(bundlePath, JSON.stringify(content), "utf8");
15-
} catch(e) {
16-
console.error(e.message);
17-
}
18-
197
var hooksDir = hookHelper.getHooksDir(),
208
beforeLivesyncHookDir = hookHelper.getBeforeLivesyncHookDir(),
219
content = 'module.exports = require("nativescript-angular/hooks/before-livesync");';

0 commit comments

Comments
 (0)