wp-advads 1.0.20 → 1.0.21

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "wp-advads",
4
- "version": "1.0.20",
4
+ "version": "1.0.21",
5
5
  "description": "Create a Advanced Ads wordPress plugin eco system.",
6
6
  "author": {
7
7
  "name": "Shakeeb Ahmed",
@@ -2,7 +2,7 @@
2
2
  * Node dependencies
3
3
  */
4
4
  import fs from 'fs'
5
- import { join } from 'path'
5
+ import { join, sep } from 'path'
6
6
  import { createRequire } from 'node:module'
7
7
 
8
8
  /**
@@ -60,5 +60,5 @@ export function getRootFolder() {
60
60
  export function getTemplateFolder() {
61
61
  const require = createRequire( import.meta.url )
62
62
  return require.resolve( '../../template' )
63
- .replace( '/index.js', '' )
63
+ .replace( `${sep}index.js`, '' )
64
64
  }