@sumotto/configs 0.0.36 → 0.0.37

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.
@@ -4,6 +4,7 @@ const fs = require( 'fs' );
4
4
  const browserslist = require( 'browserslist' );
5
5
 
6
6
  require( 'dotenv' ).config( {
7
+ quiet: true,
7
8
  path: [
8
9
  path.resolve( process.cwd(), '.env.local' ),
9
10
  path.resolve( process.cwd(), '.env' ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumotto/configs",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "Configs for my work",
5
5
  "scripts": {
6
6
  "release": "np --yolo",
@@ -3,6 +3,7 @@ const glob = require( 'glob' );
3
3
  const path = require( 'path' );
4
4
 
5
5
  require( 'dotenv' ).config( {
6
+ quiet: true,
6
7
  path: [
7
8
  path.resolve( process.cwd(), '.env.local' ),
8
9
  path.resolve( process.cwd(), '.env' ),
@@ -5,15 +5,16 @@ const ImageMinimizerPlugin = require( 'image-minimizer-webpack-plugin' );
5
5
  const SyncWebpackPlugin = require( '../helpers/sync-webpack-plugin' );
6
6
  const CleanWebpackPlugin = require( '../helpers/clean-webpack-plugin' );
7
7
  const findFreePort = require( 'find-free-port-sync' );
8
- const { resolve } = require( 'node:path' );
8
+ const { resolve, basename } = require( 'node:path' );
9
9
  const {
10
10
  Config,
11
11
  defaultConfigWP,
12
12
  modulesConfigWP,
13
13
  } = require( '../helpers/webpack' );
14
14
  const rootPath = process.cwd().replace( /\\/g, '/' );
15
+ const themeName = basename( rootPath );
15
16
  const outputPath = process.env.WP_CONTENT_DIR
16
- ? resolve( process.env.WP_CONTENT_DIR, 'themes/theme-child' )
17
+ ? resolve( process.env.WP_CONTENT_DIR, 'themes', themeName )
17
18
  : rootPath;
18
19
 
19
20
  const port =