Skip to content

Commit

Permalink
fix: added missing dependencies #146, #166
Browse files Browse the repository at this point in the history
  • Loading branch information
bennymeg committed May 17, 2022
1 parent da1af7b commit d37a7bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
},
"private": true,
"devDependencies": {
"@angular-devkit/core": "^13.3.4",
"@angular-devkit/schematics": "^13.3.4",
"@nrwl/angular": "13.10.3",
"@nrwl/cli": "13.10.3",
"@nrwl/devkit": "13.10.3",
Expand Down
8 changes: 6 additions & 2 deletions packages/nx-electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nx-electron",
"version": "13.1.0",
"version": "13.1.1",
"main": "src/index.js",
"description": "Electron Plugin for Nx",
"author": "Benny Megidish",
Expand Down Expand Up @@ -46,10 +46,14 @@
"executors"
],
"peerDependencies": {
"@nrwl/workspace": "^13",
"electron": "*"
},
"dependencies": {
"@angular-devkit/schematics": "^13",
"@nrwl/devkit": "^13",
"@nrwl/jest": "^13",
"@nrwl/linter": "^13",
"@nrwl/workspace": "^13",
"circular-dependency-plugin": "^5.2.2",
"copy-webpack-plugin": "^10.2.4",
"electron-builder": "^22.14.13",
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-electron/src/utils/electron.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appRootPath } from '@nrwl/tao/src/utils/app-root';
import { workspaceRoot } from '@nrwl/devkit';
import { Configuration } from 'webpack';
import { merge } from 'webpack-merge';
import nodeExternals from 'webpack-node-externals';
Expand Down Expand Up @@ -51,7 +51,7 @@ function getElectronPartial(options: BuildElectronBuilderOptions): Configuration
}

if (options.externalDependencies === 'all') {
const modulesDir = `${appRootPath}/node_modules`;
const modulesDir = `${workspaceRoot}/node_modules`;
webpackConfig.externals = [nodeExternals({ modulesDir })];
} else if (Array.isArray(options.externalDependencies)) {
webpackConfig.externals = [
Expand Down

0 comments on commit d37a7bd

Please sign in to comment.