@sumotto/configs 0.0.35 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumotto/configs",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "Configs for my work",
5
5
  "scripts": {
6
6
  "release": "np --yolo",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "homepage": "https://github.com/SumoTTo/configs#readme",
22
22
  "devDependencies": {
23
- "np": "^10.2.0"
23
+ "np": "^11.0.2"
24
24
  },
25
25
  "files": [
26
26
  "helpers/*",
@@ -28,19 +28,19 @@
28
28
  "wp/*"
29
29
  ],
30
30
  "dependencies": {
31
- "@wordpress/dependency-extraction-webpack-plugin": "^6.18.0",
32
- "@wordpress/scripts": "^30.11.0",
31
+ "@wordpress/dependency-extraction-webpack-plugin": "^6.39.0",
32
+ "@wordpress/scripts": "^31.4.0",
33
33
  "chokidar": "^4.0.3",
34
- "copy-webpack-plugin": "^12.0.2",
35
- "dotenv": "^16.4.7",
34
+ "copy-webpack-plugin": "^13.0.1",
35
+ "dotenv": "^17.2.4",
36
36
  "find-free-port-sync": "^1.0.0",
37
- "glob": "^11.0.1",
38
- "image-minimizer-webpack-plugin": "^4.1.3",
39
- "mini-css-extract-plugin": "^2.9.2",
40
- "rimraf": "^6.0.1",
41
- "svgo": "^3.3.2",
37
+ "glob": "^13.0.1",
38
+ "image-minimizer-webpack-plugin": "^4.1.4",
39
+ "mini-css-extract-plugin": "^2.10.0",
40
+ "rimraf": "^6.1.2",
41
+ "svgo": "^4.0.0",
42
42
  "sync-directory": "^6.0.5",
43
- "webpack-remove-empty-scripts": "^1.0.4"
43
+ "webpack-remove-empty-scripts": "^1.1.1"
44
44
  },
45
45
  "eslintConfig": {
46
46
  "extends": [
@@ -1,14 +1,26 @@
1
1
  const { resolve } = require( 'node:path' );
2
2
 
3
+ const shouldApplyWrapSelector = ( filePath ) => {
4
+ if ( ! filePath ) {
5
+ return true;
6
+ }
7
+
8
+ return ! /node_modules/.test( filePath );
9
+ };
10
+
3
11
  module.exports = ( api ) => {
4
12
  const isProduction = api.mode === 'production';
13
+ const currentFile = api.file;
14
+ const applyWrapSelector = shouldApplyWrapSelector( currentFile );
5
15
 
6
16
  return {
7
17
  ident: 'postcss',
8
18
  sourceMap: ! isProduction,
9
19
  plugins: [
10
20
  [ 'autoprefixer', { grid: true } ],
11
- [ require( resolve( __dirname, '../postcss/wrap-selector.js' ) ) ],
21
+ applyWrapSelector && [
22
+ require( resolve( __dirname, '../postcss/wrap-selector.js' ) ),
23
+ ],
12
24
  isProduction && [
13
25
  'cssnano',
14
26
  {
@@ -84,14 +84,8 @@ const defaultConfig = new Config( defaultConfigWP, 'default', port )
84
84
  encodeOptions: {
85
85
  multipass: true,
86
86
  plugins: [
87
- {
88
- name: 'preset-default',
89
- params: {
90
- overrides: {
91
- removeViewBox: false,
92
- },
93
- },
94
- },
87
+ 'preset-default',
88
+ 'removeTitle',
95
89
  {
96
90
  name: 'addAttributesToSVGElement',
97
91
  params: {