@alevnyacow/nzmt 0.41.1 → 0.41.2
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/bin/cli.js +3 -3
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1438,10 +1438,10 @@ function generateWidget(name, rootPath) {
|
|
|
1438
1438
|
const widgetsPath = config.paths.widgets
|
|
1439
1439
|
const root = findProjectRoot()
|
|
1440
1440
|
|
|
1441
|
-
const folder = path.resolve(root, widgetsPath
|
|
1441
|
+
const folder = path.resolve(root, `${config.coreFolder}${widgetsPath}`, rootPath ?? '.', name)
|
|
1442
1442
|
fs.mkdirSync(folder, { recursive: true })
|
|
1443
1443
|
|
|
1444
|
-
fs.writeFileSync(path.resolve(folder, `${
|
|
1444
|
+
fs.writeFileSync(path.resolve(folder, `${name}.widget.tsx`), [
|
|
1445
1445
|
`import { FC } from 'react'`,
|
|
1446
1446
|
`import styles from './${lowerCase}.widget.module.css'`,
|
|
1447
1447
|
``,
|
|
@@ -1452,7 +1452,7 @@ function generateWidget(name, rootPath) {
|
|
|
1452
1452
|
`}`
|
|
1453
1453
|
].join('\n'))
|
|
1454
1454
|
|
|
1455
|
-
fs.writeFileSync(path.resolve(folder, `${
|
|
1455
|
+
fs.writeFileSync(path.resolve(folder, `${name}.widget.module.css`), [
|
|
1456
1456
|
''
|
|
1457
1457
|
].join('\n'))
|
|
1458
1458
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alevnyacow/nzmt",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"description": "Next Zod Modules Toolkit",
|
|
5
5
|
"keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
|
|
6
6
|
"repository": {
|