@worldware/msg-cli 0.0.2 → 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 = `../projects/${projectName}`;
119
+ const projectImport = isEsm
120
+ ? `../projects/${projectName}.js`
121
+ : `../projects/${projectName}`;
120
122
  const messagesBlock = ` messages: [
121
123
  {
122
124
  key: 'example.message',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldware/msg-cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "CLI for msg library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {