diff --git a/.changeset/tame-toes-ring.md b/.changeset/tame-toes-ring.md new file mode 100644 index 0000000000..81462f20d1 --- /dev/null +++ b/.changeset/tame-toes-ring.md @@ -0,0 +1,6 @@ +--- +"@talend/design-tokens": patch +"@talend/icons": patch +--- + +Fix esm script diff --git a/.github/workflows/design-system-component-testing.yml b/.github/workflows/design-system-component-testing.yml index 58ddb436ea..2992177a26 100644 --- a/.github/workflows/design-system-component-testing.yml +++ b/.github/workflows/design-system-component-testing.yml @@ -36,10 +36,10 @@ jobs: run: | yarn --frozen-lock --ignore-scripts yarn cypress install - yarn workspace @talend/assets-api run build:lib - yarn workspace @talend/utils run build:lib - yarn workspace @talend/icons run build:lib - yarn workspace @talend/design-tokens run build:lib + yarn workspace @talend/assets-api run build:lib:esm + yarn workspace @talend/utils run build:lib:esm + yarn workspace @talend/icons run build:lib:esm + yarn workspace @talend/design-tokens run build:lib:esm - name: Cypress Component Testing uses: cypress-io/github-action@1b70233146622b69e789ccdd4f9452adc638d25a #v6.6.1 diff --git a/packages/design-tokens/package.json b/packages/design-tokens/package.json index b18d56ec28..9de9c688d2 100644 --- a/packages/design-tokens/package.json +++ b/packages/design-tokens/package.json @@ -32,7 +32,7 @@ "build:umd:dev": "talend-scripts build --umd --dev", "build:umd:prod": "talend-scripts build --umd", "build:lib": "talend-scripts build && yarn build:umd:dev && yarn build:umd:prod && yarn test:umd", - "build:lib:esm": "yarn build:lib && talend-scripts build --esm && cpx 'dist/*' lib/esm/dist --verbose", + "build:lib:esm": "yarn build:lib && talend-scripts build --esm && cpx 'dist/*' lib-esm/dist --verbose", "test": "echo no test for @talend/design-tokens", "test:cov": "echo no test for @talend/design-tokens", "test:umd": "jest scripts/umd.test.js", diff --git a/packages/icons/package.json b/packages/icons/package.json index 98cb16b645..5e19f0d64d 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -27,7 +27,7 @@ "build-react": "node scripts/react.js", "build-webfont": "webpack", "build:lib": "npm run ts:types && npm run build-ts && npm run build-react && npm run build-webfont && npm run build-umd", - "build:lib:esm": "talend-scripts build --esm && cpx 'src/**/*.{svg,json}' lib/esm/src --verbose", + "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", "ts:types": "node scripts/typescript.js", "test": "echo no test", "test:cov": "echo no test",