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

Commit 1b892dc

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

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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

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

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

8-
const PROJECT_DIR = getProjectDir({ nestingLvl: 3 });
8+
const PROJECT_DIR = getProjectDir({ nestingLvl: 2 });
99
const APP_ID = require(path.resolve(PROJECT_DIR, "./package.json")).nativescript.id;
1010
const APP_NAME = APP_ID.substring(APP_ID.lastIndexOf(".") + 1);
1111
const PROJECT_PATHS = {

0 commit comments

Comments
 (0)