Skip to content

Commit

Permalink
Copy SCSS files to cjs and esm directories for compatibility (#1125
Browse files Browse the repository at this point in the history
…) (#1126)

* Copy SCSS files to cjs and esm dirs for backwards compatibility.

* rush change

(cherry picked from commit f072efb)

Co-authored-by: GerardasB <[email protected]>
  • Loading branch information
mergify[bot] and GerardasB authored Nov 20, 2024
1 parent ac9c258 commit ac02282
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 4 deletions.
10 changes: 10 additions & 0 deletions common/changes/@itwin/appui-react/css-compat_2024-11-19-16-11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/appui-react",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/appui-react"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/components-react",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/components-react"
}
10 changes: 10 additions & 0 deletions common/changes/@itwin/core-react/css-compat_2024-11-19-16-11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-react",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-react"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/imodel-components-react",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/imodel-components-react"
}
5 changes: 4 additions & 1 deletion ui/appui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
},
"scripts": {
"start": "run-p -l \"build -- -w\" \"copy:** -- -w\"",
"build": "npm run copy:css && npm run copy:locale && tsc",
"build": "npm run copy:css && npm run compat:css && npm run copy:locale && tsc",
"copy:css": "cpx \"./src/**/*.{*css,json,svg}\" ./lib",
"copy:locale": "cpx ./src/appui-react/UiFramework.json ./lib/public/locales/en",
"compat:css": "npm run compat:cjs && npm run compat:esm",
"compat:cjs": "cpx \"./src/**/*.{*css,svg}\" ./lib/cjs",
"compat:esm": "cpx \"./src/**/*.{*css,svg}\" ./lib/esm",
"clean": "rimraf lib .rush/temp/package-deps*.json",
"cover": "vitest run --coverage",
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
Expand Down
5 changes: 4 additions & 1 deletion ui/components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
},
"scripts": {
"start": "run-p -l \"build -- -w\" \"copy:** -- -w\"",
"build": "npm run copy:css && npm run copy:locale && tsc",
"build": "npm run copy:css && npm run compat:css && npm run copy:locale && tsc",
"copy:css": "cpx \"./src/**/*.*css\" ./lib",
"copy:locale": "cpx ./src/components-react/UiComponents.json ./lib/public/locales/en",
"compat:css": "npm run compat:cjs && npm run compat:esm",
"compat:cjs": "cpx \"./src/**/*.{*css,svg}\" ./lib/cjs",
"compat:esm": "cpx \"./src/**/*.{*css,svg}\" ./lib/esm",
"clean": "rimraf lib .rush/temp/package-deps*.json",
"cover": "vitest run --coverage",
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
Expand Down
5 changes: 4 additions & 1 deletion ui/core-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
},
"scripts": {
"start": "run-p -l \"build -- -w\" \"copy:** -- -w\"",
"build": "npm run copy:css && npm run copy:locale && tsc",
"build": "npm run copy:css && npm run compat:css && npm run copy:locale && tsc",
"copy:css": "cpx \"./src/**/*.{*css,svg}\" ./lib",
"copy:locale": "cpx ./src/core-react/UiCore.json ./lib/public/locales/en",
"compat:css": "npm run compat:cjs && npm run compat:esm",
"compat:cjs": "cpx \"./src/**/*.{*css,svg}\" ./lib/cjs",
"compat:esm": "cpx \"./src/**/*.{*css,svg}\" ./lib/esm",
"clean": "rimraf lib .rush/temp/package-deps*.json",
"cover": "vitest run --coverage",
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
Expand Down
5 changes: 4 additions & 1 deletion ui/imodel-components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
},
"scripts": {
"start": "run-p -l \"build -- -w\" \"copy:** -- -w\"",
"build": "npm run copy:css && npm run copy:locale && tsc",
"build": "npm run copy:css && npm run compat:css && npm run copy:locale && tsc",
"copy:css": "cpx \"./src/**/*.*css\" ./lib",
"copy:locale": "cpx ./src/imodel-components-react/UiIModelComponents.json ./lib/public/locales/en",
"compat:css": "npm run compat:cjs && npm run compat:esm",
"compat:cjs": "cpx \"./src/**/*.{*css,svg}\" ./lib/cjs",
"compat:esm": "cpx \"./src/**/*.{*css,svg}\" ./lib/esm",
"clean": "rimraf lib .rush/temp/package-deps*.json",
"cover": "vitest run --coverage",
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
Expand Down

0 comments on commit ac02282

Please sign in to comment.