Skip to content

Commit b2bb782

Browse files
committed
fix
1 parent 4db2f5e commit b2bb782

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

messageGenerator.ts renamed to message_generator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const generate = async () => {
2828
};
2929
}
3030

31-
try {
32-
generate();
33-
} catch(e) {
31+
generate().then(() => {
32+
console.log('successfully generated messages');
33+
}).catch((e) => {
3434
console.error(e);
3535
process.exit(1);
36-
}
36+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"prepare": "npm run build",
9090
"prepublishOnly": "npm test && npm run test-ci",
9191
"postbuild:win": "@powershell copy \"dist/index.lite.d.ts\" \"dist/optimizely.lite.es.d.ts\" && @powershell copy \"dist/index.lite.d.ts\" \"dist/optimizely.lite.es.min.d.ts\" && @powershell copy \"dist/index.lite.d.ts\" \"dist/optimizely.lite.min.d.ts\"",
92-
"genmsg": "jiti messageGenerator ./lib/errorMessages.ts"
92+
"genmsg": "jiti message_generator ./lib/error_messages.ts"
9393
},
9494
"repository": {
9595
"type": "git",

0 commit comments

Comments
 (0)