Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #416 from izaera/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
izaera authored Sep 18, 2019
2 parents b71d423 + b1ab39b commit 0ca09e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/liferay-npm-bundler/src/steps/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import fs from 'fs-extra';
import * as babelIpc from 'liferay-npm-build-tools-common/lib/babel-ipc';
import * as gl from 'liferay-npm-build-tools-common/lib/globs';
import {getPackageTargetDir} from 'liferay-npm-build-tools-common/lib/packages';
import PkgDesc from 'liferay-npm-build-tools-common/lib/pkg-desc';
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger';
import project from 'liferay-npm-build-tools-common/lib/project';
import path from 'path';
Expand Down Expand Up @@ -339,7 +340,7 @@ function renamePkgDirIfNecessary(destPkg) {

return fs
.move(destPkg.dir.asNative, newDirPath)
.then(() => destPkg.clone({dir: newDirPath}));
.then(() => new PkgDesc(pkgJson.name, pkgJson.version, newDirPath));
}

return Promise.resolve(destPkg);
Expand Down

0 comments on commit 0ca09e1

Please sign in to comment.