Skip to content

Commit

Permalink
[pigment] Update to latest wyw version
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed Mar 5, 2024
1 parent ed3c069 commit 5ee835c
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 42 deletions.
6 changes: 3 additions & 3 deletions packages/pigment-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"@emotion/styled": "^11.11.0",
"@emotion/react": "^11.11.4",
"@mui/system": "workspace:^",
"@wyw-in-js/processor-utils": "^0.4.1",
"@wyw-in-js/shared": "^0.4.1",
"@wyw-in-js/transform": "^0.4.1",
"@wyw-in-js/processor-utils": "^0.5.0",
"@wyw-in-js/shared": "^0.5.0",
"@wyw-in-js/transform": "^0.5.0",
"clsx": "^2.1.0",
"cssesc": "^3.0.0",
"csstype": "^3.1.3",
Expand Down
25 changes: 13 additions & 12 deletions packages/pigment-react/tests/pigment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,24 @@ describe('zero-runtime', () => {
const outputContent = fs.readFileSync(outputFilePath, 'utf8');
const outputCssContent = fs.readFileSync(outputCssFilePath, 'utf8');

const pluginOptions = {
themeArgs: {
theme,
},
babelOptions: {
configFile: false,
babelrc: false,
},
tagResolver(_source: string, tag: string) {
return require.resolve(`../exports/${tag}`);
},
};
const result = await transform(
{
options: {
filename: inputFilePath,
preprocessor,
pluginOptions: {
themeArgs: {
theme,
},
babelOptions: {
configFile: false,
babelrc: false,
},
tagResolver(_source, tag) {
return require.resolve(`../exports/${tag}`);
},
},
pluginOptions,
},
cache,
eventEmitter,
Expand Down
4 changes: 2 additions & 2 deletions packages/pigment-unplugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"dependencies": {
"@babel/core": "^7.23.9",
"@pigment-css/react": "workspace:^",
"@wyw-in-js/shared": "^0.4.1",
"@wyw-in-js/transform": "^0.4.1",
"@wyw-in-js/shared": "^0.5.0",
"@wyw-in-js/transform": "^0.5.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"unplugin": "^1.7.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/pigment-vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@babel/core": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@pigment-css/react": "workspace:^",
"@wyw-in-js/shared": "^0.4.1",
"@wyw-in-js/transform": "^0.4.1",
"@wyw-in-js/shared": "^0.5.0",
"@wyw-in-js/transform": "^0.5.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24"
},
"devDependencies": {
Expand Down
46 changes: 23 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"groupName": "Emotion",
"matchPackagePatterns": "@emotion/*"
},
{
"groupName": "WyW-in-JS",
"matchPackagePatterns": ["@wyw-in-js/*"]
},
{
"groupName": "Font awesome SVG icons",
"matchPackagePatterns": "@fortawesome/*"
Expand Down

0 comments on commit 5ee835c

Please sign in to comment.