@worldware/msg-cli 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,7 +116,9 @@ function importMsgProjectForResource(projectsDir, projectName) {
|
|
|
116
116
|
*/
|
|
117
117
|
function generateMsgResourceContent(params) {
|
|
118
118
|
const { title, projectName, sourceLocale, dir, isEsm } = params;
|
|
119
|
-
const projectImport =
|
|
119
|
+
const projectImport = isEsm
|
|
120
|
+
? `../projects/${projectName}.js`
|
|
121
|
+
: `../projects/${projectName}`;
|
|
120
122
|
const messagesBlock = ` messages: [
|
|
121
123
|
{
|
|
122
124
|
key: 'example.message',
|