We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 105a737 commit 0d2c256Copy full SHA for 0d2c256
nativescript-angular/postinstall.js
@@ -1,21 +1,9 @@
1
var fs = require("fs");
2
var os = require("os");
3
-var path = require("path");
4
var hookHelper = require("./hooks/hook-helper");
5
var projectDir = hookHelper.findProjectDir();
6
7
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
19
var hooksDir = hookHelper.getHooksDir(),
20
beforeLivesyncHookDir = hookHelper.getBeforeLivesyncHookDir(),
21
content = 'module.exports = require("nativescript-angular/hooks/before-livesync");';
0 commit comments