Skip to content

Commit db6bba3

Browse files
committed
build(combobox-web): turbo.json config for running create-translation before release
1 parent d28f42c commit db6bba3

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

packages/pluggableWidgets/combobox-web/rollup.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@ const { cp, mkdir } = require("shelljs");
33

44
const sourcePath = process.cwd();
55
const outDir = join(sourcePath, "/dist/tmp/widgets/");
6-
const widgetPackageJson = require(join(sourcePath, "package.json"));
7-
const widgetName = widgetPackageJson.widgetName;
8-
const widgetPackage = widgetPackageJson.packagePath;
9-
const outWidgetDir = join(widgetPackage.replace(/\./g, "/"), widgetName.toLowerCase());
10-
const absoluteOutPackageDir = join(outDir, outWidgetDir);
116

127
module.exports = args => {
138
const result = args.configDefaultConfig;
149

15-
const localesDir = join(absoluteOutPackageDir, "locales");
10+
const localesDir = join(outDir, "locales");
1611
mkdir("-p", localesDir);
1712

1813
const translationFiles = join(sourcePath, "dist/locales/**/*");

turbo.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"outputs": ["dist/**", "!dist/tmp/**"]
1313
},
1414
"release": {
15-
"dependsOn": ["^release", "verify"],
15+
"dependsOn": ["^release", "verify", "create-translation"],
1616
"outputs": ["dist/**", "!dist/tmp/**"]
1717
},
1818
"build:module": {
@@ -40,7 +40,7 @@
4040
},
4141
"create-translation": {
4242
"cache": false,
43-
"outputs": [],
43+
"outputs": ["dist/**"],
4444
"inputs": ["src/**/*.xml", "!src/**/package.xml"]
4545
},
4646
"publish-marketplace": {

0 commit comments

Comments
 (0)