Skip to content

Commit 1ba9923

Browse files
committed
WDSBT-20 - Fix packagejson linting error and fix block build output
1 parent cd82a16 commit 1ba9923

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"node": ">=20",
2222
"npm": ">=10"
2323
},
24+
"dependencies": {
25+
"svgo": "^3.3.2"
26+
},
2427
"devDependencies": {
2528
"@babel/core": "^7.24.7",
2629
"@babel/plugin-transform-class-static-block": "7.24.6",
@@ -99,8 +102,5 @@
99102
"*.scss": [
100103
"wp-scripts lint-style"
101104
]
102-
},
103-
"dependencies": {
104-
"svgo": "^3.3.2"
105105
}
106106
}

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,15 @@ module.exports = {
217217
log: false,
218218
test: [
219219
{
220-
folder: path.resolve(__dirname, 'build'),
220+
folder: path.resolve(__dirname, 'build/css/blocks'),
221221
method: (absoluteItemPath) => {
222-
return new RegExp(/\.js/, 'm').test(
222+
return new RegExp(/\.js$/, 'm').test(
223223
absoluteItemPath
224224
);
225225
},
226226
},
227227
{
228-
folder: path.resolve(__dirname, 'build'),
228+
folder: path.resolve(__dirname, 'build/css/blocks'),
229229
method: (absoluteItemPath) => {
230230
return new RegExp(/\.php$/, 'm').test(
231231
absoluteItemPath

0 commit comments

Comments
 (0)