@newlogic-digital/core 2.0.2 → 2.0.4
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/index.js +4 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -149,6 +149,10 @@ const plugin = (options = {}) => {
|
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
if (userEnv.command === 'build') {
|
|
153
|
+
userConfig.publicDir = userConfig.publicDir ?? false
|
|
154
|
+
}
|
|
155
|
+
|
|
152
156
|
if (options.mode === 'emails') {
|
|
153
157
|
userEnv.mode = 'production'
|
|
154
158
|
|
|
@@ -160,8 +164,6 @@ const plugin = (options = {}) => {
|
|
|
160
164
|
|
|
161
165
|
const outDir = resolve(userConfig.root ?? process.cwd(), 'public')
|
|
162
166
|
|
|
163
|
-
userConfig.publicDir = userConfig.publicDir ?? false
|
|
164
|
-
|
|
165
167
|
if (userConfig.build && !userConfig.build.outDir) {
|
|
166
168
|
userConfig.build.outDir = outDir
|
|
167
169
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newlogic-digital/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
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",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"picocolors": "^1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^20.4.
|
|
31
|
+
"@types/node": "^20.4.8",
|
|
32
32
|
"eslint": "^8.46.0",
|
|
33
33
|
"eslint-config-standard": "^17.1.0",
|
|
34
34
|
"typescript": "^5.1.6",
|
|
35
|
-
"vite": "^4.4.
|
|
35
|
+
"vite": "^4.4.9"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"latte",
|