@newlogic-digital/core 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -147,6 +147,8 @@ const plugin = (options = {}) => {
147
147
  './src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
148
148
  './src/scripts/*.{js,ts,mjs}'
149
149
  ]
150
+ } else {
151
+ userConfig.publicDir = userConfig.publicDir ?? false
150
152
  }
151
153
 
152
154
  if (options.mode === 'emails') {
@@ -160,8 +162,6 @@ const plugin = (options = {}) => {
160
162
 
161
163
  const outDir = resolve(userConfig.root ?? process.cwd(), 'public')
162
164
 
163
- userConfig.publicDir = userConfig.publicDir ?? false
164
-
165
165
  if (userConfig.build && !userConfig.build.outDir) {
166
166
  userConfig.build.outDir = outDir
167
167
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",