Skip to content

Commit 9b66a09

Browse files
authored
fix(TMC-28189): cypress need esm (improvements) (#5334)
1 parent d053412 commit 9b66a09

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.changeset/wise-dancers-smash.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@talend/design-tokens": patch
3+
"@talend/icons": patch
4+
---
5+
6+
Improve changes needed for cypress and simplify scripts

.github/workflows/design-system-component-testing.yml

+2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
yarn cypress install
3939
yarn workspace @talend/assets-api run build:lib:esm
4040
yarn workspace @talend/utils run build:lib:esm
41+
yarn workspace @talend/icons run build:lib
4142
yarn workspace @talend/icons run build:lib:esm
43+
yarn workspace @talend/design-tokens run build:lib
4244
yarn workspace @talend/design-tokens run build:lib:esm
4345
4446
- name: Cypress Component Testing

packages/design-tokens/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"build:umd:dev": "talend-scripts build --umd --dev",
3333
"build:umd:prod": "talend-scripts build --umd",
3434
"build:lib": "talend-scripts build && yarn build:umd:dev && yarn build:umd:prod && yarn test:umd",
35-
"build:lib:esm": "yarn build:lib && talend-scripts build --esm && cpx 'dist/*' lib-esm/dist --verbose",
35+
"build:lib:esm": "talend-scripts build --esm",
3636
"test": "echo no test for @talend/design-tokens",
3737
"test:cov": "echo no test for @talend/design-tokens",
3838
"test:umd": "jest scripts/umd.test.js",

packages/icons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"build-react": "node scripts/react.js",
2828
"build-webfont": "webpack",
2929
"build:lib": "npm run ts:types && npm run build-ts && npm run build-react && npm run build-webfont && npm run build-umd",
30-
"build:lib:esm": "npm run ts:types && npm run build-ts && npm run build-react && npm run build-webfont && talend-scripts build --esm && cpx 'src/**/*.{svg,json}' lib-esm/src --verbose",
30+
"build:lib:esm": "talend-scripts build --esm",
3131
"ts:types": "node scripts/typescript.js",
3232
"test": "echo no test",
3333
"test:cov": "echo no test",

0 commit comments

Comments
 (0)