Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 1191a50

Browse files
committed
refactor: invoke webpack with --preserve-symlinks
1 parent 83fb333 commit 1191a50

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: bin/ns-bundle

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const semver = require("semver");
88

99
const { getPackageJson, getProjectDir } = require("../projectHelpers");
1010

11-
const PROJECT_DIR = getProjectDir({ nestingLvl: 3 });
11+
const PROJECT_DIR = getProjectDir({ nestingLvl: 2 });
1212
const packageJson = getPackageJson(PROJECT_DIR);
1313

1414
if (!process.env.npm_config_argv) {
@@ -152,7 +152,9 @@ function webpack(platform, env) {
152152
console.log(`Running webpack for ${platform}...`);
153153

154154
const args = [
155-
`webpack`,
155+
`node`,
156+
`--preserve-symlinks`,
157+
`./node_modules/.bin/webpack`,
156158
`--config=webpack.config.js`,
157159
`--progress`,
158160
`--env.${platform}`,

Diff for: bin/ns-verify-bundle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const path = require("path");
44
const fs = require("fs");
55

6-
const { getProjectDir } = require("../helpers");
6+
const { getProjectDir } = require("../projectHelpers");
77

88
const PROJECT_DIR = getProjectDir({ nestingLvl: 3 });
99
const APP_ID = require(path.resolve(PROJECT_DIR, "./package.json")).nativescript.id;

0 commit comments

Comments
 (0)