@nx-extend/shadcn-ui 4.2.0 → 4.2.1
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/CHANGELOG.md +13 -0
- package/package.json +3 -3
- package/src/executors/add/add.impl.d.ts +1 -2
- package/src/executors/add/add.impl.js +9 -3
- package/src/executors/add/add.impl.js.map +1 -1
- package/src/executors/add/add.impl.ts +19 -19
- package/src/generators/init/init.impl.js +3 -2
- package/src/generators/init/init.impl.js.map +1 -1
- package/src/generators/init/init.impl.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.2.1](https://github.com/tripss/nx-extend/compare/shadcn-ui@4.2.0...shadcn-ui@4.2.1) (2024-12-13)
|
|
3
|
+
|
|
4
|
+
### Dependency Updates
|
|
5
|
+
|
|
6
|
+
* `core` updated to version `8.1.1`
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **shadcn-ui:** Fixed user input not propagating to lib ([c7b8a51](https://github.com/tripss/nx-extend/commit/c7b8a5188145e15496b7a366bcabc8eff5f60975))
|
|
11
|
+
* **shadcn-ui:** Update alias paths ([645ca55](https://github.com/tripss/nx-extend/commit/645ca55bab219524b9bf4d1fc9830b31b0a56eeb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
2
15
|
# [4.2.0](https://github.com/tripss/nx-extend/compare/shadcn-ui@4.1.2...shadcn-ui@4.2.0) (2024-11-15)
|
|
3
16
|
|
|
4
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-extend/shadcn-ui",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"nx",
|
|
6
6
|
"shadcn-ui"
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@nx/eslint": "20.0.0",
|
|
25
25
|
"class-variance-authority": "0.7.0",
|
|
26
26
|
"clsx": "2.1.1",
|
|
27
|
-
"lucide-react": "0.
|
|
27
|
+
"lucide-react": "0.460.0",
|
|
28
28
|
"shelljs": "^0.8.5",
|
|
29
29
|
"tailwind-merge": "2.5.4",
|
|
30
30
|
"tailwindcss-animate": "1.0.7",
|
|
31
|
-
"@nx-extend/core": "8.1.
|
|
31
|
+
"@nx-extend/core": "8.1.1",
|
|
32
32
|
"tslib": "2.7.0"
|
|
33
33
|
},
|
|
34
34
|
"packageManager": "yarn@4.3.1",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nx/devkit';
|
|
2
1
|
export interface ExecutorSchema {
|
|
3
2
|
component?: string;
|
|
4
3
|
overwrite?: boolean;
|
|
5
4
|
}
|
|
6
|
-
export declare function addExecutor(options: ExecutorSchema
|
|
5
|
+
export declare function addExecutor(options: ExecutorSchema): Promise<{
|
|
7
6
|
success: boolean;
|
|
8
7
|
}>;
|
|
9
8
|
export default addExecutor;
|
|
@@ -2,17 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addExecutor = addExecutor;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const core_1 = require("@nx-extend/core");
|
|
6
|
-
|
|
7
|
+
const child_process_1 = require("child_process");
|
|
8
|
+
function addExecutor(options) {
|
|
7
9
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
10
|
var _a;
|
|
9
|
-
|
|
11
|
+
(0, child_process_1.execSync)((0, core_1.buildCommand)([
|
|
12
|
+
(0, core_1.getPackageManagerDlxCommand)(),
|
|
10
13
|
'shadcn@latest add',
|
|
11
14
|
((_a = options.component) !== null && _a !== void 0 ? _a : '').length === 0 ? '--all' : options.component,
|
|
12
15
|
options.overwrite && '--overwrite'
|
|
13
16
|
]), {
|
|
14
|
-
|
|
17
|
+
cwd: devkit_1.workspaceRoot,
|
|
18
|
+
env: Object.assign(Object.assign({}, process.env), { TS_NODE_PROJECT: 'tsconfig.base.json' }),
|
|
19
|
+
stdio: 'inherit'
|
|
15
20
|
});
|
|
21
|
+
return { success: true };
|
|
16
22
|
});
|
|
17
23
|
}
|
|
18
24
|
exports.default = addExecutor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.impl.js","sourceRoot":"","sources":["../../../../../../packages/shadcn-ui/src/executors/add/add.impl.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"add.impl.js","sourceRoot":"","sources":["../../../../../../packages/shadcn-ui/src/executors/add/add.impl.ts"],"names":[],"mappings":";;AASA,kCAgBC;;AAzBD,uCAA0C;AAC1C,0CAA2E;AAC3E,iDAAwC;AAOxC,SAAsB,WAAW,CAAC,OAAuB;;;QACvD,IAAA,wBAAQ,EAAC,IAAA,mBAAY,EAAC;YACpB,IAAA,kCAA2B,GAAE;YAC7B,mBAAmB;YACnB,CAAC,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS;YACpE,OAAO,CAAC,SAAS,IAAI,aAAa;SACnC,CAAC,EAAE;YACF,GAAG,EAAE,sBAAa;YAClB,GAAG,kCACE,OAAO,CAAC,GAAG,KACd,eAAe,EAAE,oBAAoB,GACtC;YACD,KAAK,EAAE,SAAS;SACjB,CAAC,CAAA;QAEF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { buildCommand,
|
|
1
|
+
import { workspaceRoot } from '@nx/devkit'
|
|
2
|
+
import { buildCommand, getPackageManagerDlxCommand } from '@nx-extend/core'
|
|
3
|
+
import { execSync } from 'child_process'
|
|
3
4
|
|
|
4
5
|
export interface ExecutorSchema {
|
|
5
6
|
component?: string
|
|
6
7
|
overwrite?: boolean
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export async function addExecutor(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)
|
|
10
|
+
export async function addExecutor(options: ExecutorSchema): Promise<{ success: boolean }> {
|
|
11
|
+
execSync(buildCommand([
|
|
12
|
+
getPackageManagerDlxCommand(),
|
|
13
|
+
'shadcn@latest add',
|
|
14
|
+
(options.component ?? '').length === 0 ? '--all' : options.component,
|
|
15
|
+
options.overwrite && '--overwrite'
|
|
16
|
+
]), {
|
|
17
|
+
cwd: workspaceRoot,
|
|
18
|
+
env: {
|
|
19
|
+
...process.env,
|
|
20
|
+
TS_NODE_PROJECT: 'tsconfig.base.json'
|
|
21
|
+
},
|
|
22
|
+
stdio: 'inherit'
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
return { success: true }
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export default addExecutor
|
|
@@ -71,9 +71,10 @@ function default_1(tree, options) {
|
|
|
71
71
|
'cssVariables': true
|
|
72
72
|
},
|
|
73
73
|
'aliases': {
|
|
74
|
-
'
|
|
74
|
+
'ui': uiLibOptions.importPath,
|
|
75
|
+
'components': `${uiLibOptions.importPath}/components`,
|
|
75
76
|
'utils': utilsLibOptions.importPath,
|
|
76
|
-
|
|
77
|
+
'hooks': `${uiLibOptions.importPath}/hooks`
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
80
|
(0, devkit_1.updateProjectConfiguration)(tree, uiLibOptions.projectName, Object.assign(Object.assign({}, (0, devkit_1.readProjectConfiguration)(tree, uiLibOptions.projectName)), { targets: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.impl.js","sourceRoot":"","sources":["../../../../../../packages/shadcn-ui/src/generators/init/init.impl.ts"],"names":[],"mappings":";;AAwCA,
|
|
1
|
+
{"version":3,"file":"init.impl.js","sourceRoot":"","sources":["../../../../../../packages/shadcn-ui/src/generators/init/init.impl.ts"],"names":[],"mappings":";;AAwCA,4BAkFC;;AA1HD,uCAOmB;AACnB,uGAA0G;AAC1G,uCAAmC;AACnC,+BAAwC;AACxC,qCAA4C;AAC5C,+BAA2B;AAI3B,SAAS,UAAU,CAAC,IAAU,EAAE,YAAoB;IAClD,4BAA4B;IAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,YAAY,eAAe,CAAC,CAAA;IAC3C,IAAI,CAAC,MAAM,CAAC,GAAG,YAAY,eAAe,CAAC,CAAA;IAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,YAAY,UAAU,CAAC,CAAA;IAEzD,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,YAAY,YAAY,IAAI,EAAE,CAAC,CAAA;IAChD,CAAC;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,IAAU,EAAE,YAAoB;IAC1D,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,aAAa,CAAC,EAAE,YAAY,EAAE;QAChE,QAAQ,EAAE,EAAE;KACb,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,IAAU,EAAE,QAAgB;IAC9C,OAAO,IAAA,0BAAiB,EACtB,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC,OAAO,EAChC,QAAQ,CACT,CAAA;AACH,CAAC;AAED,mBAA+B,IAAU,EAAE,OAAwB;;QACjE,MAAM,YAAY,GAAG,MAAM,IAAA,gEAAkC,EAAC,IAAI,EAAE;YAClE,IAAI,EAAE,OAAO,CAAC,MAAM;YACp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U;YAC1B,gBAAgB,EAAE,QAAQ;YAC1B,qBAAqB,EAAE,QAAQ;SAChC,EACD;YACE,WAAW,EAAE,QAAQ;SACtB,CACF,CACF,CAAA;IACH,CAAC;CAAA"}
|
|
@@ -89,9 +89,10 @@ export default async function (tree: Tree, options: ShadecnUiSchema) {
|
|
|
89
89
|
'cssVariables': true
|
|
90
90
|
},
|
|
91
91
|
'aliases': {
|
|
92
|
-
'
|
|
92
|
+
'ui': uiLibOptions.importPath,
|
|
93
|
+
'components': `${uiLibOptions.importPath}/components`,
|
|
93
94
|
'utils': utilsLibOptions.importPath,
|
|
94
|
-
|
|
95
|
+
'hooks': `${uiLibOptions.importPath}/hooks`
|
|
95
96
|
}
|
|
96
97
|
})
|
|
97
98
|
|