@cieloazul310/digital-go-pandacss-cli 0.1.0-beta.8 → 0.1.0-beta.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@cieloazul310/digital-go-pandacss-cli",
3
- "version": "0.1.0-beta.8",
3
+ "version": "0.1.0-beta.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/cieloazul310/digital-go-design-system-with-panda",
@@ -35,8 +35,8 @@
35
35
  "simple-git": "^3.28.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@repo/eslint-config": "^0.1.0-beta.3",
39
- "@repo/typescript-config": "^0.1.0-beta.3",
38
+ "@repo/eslint-config": "^0.1.0-beta.4",
39
+ "@repo/typescript-config": "^0.1.0-beta.4",
40
40
  "eslint": "^9.32.0",
41
41
  "execa": "^9.6.0",
42
42
  "tsup": "8.5.0",
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/copy-components.ts
21
- var copy_components_exports = {};
22
- __export(copy_components_exports, {
23
- copyComponents: () => copyComponents
24
- });
25
- module.exports = __toCommonJS(copy_components_exports);
26
- var import_fs = require("fs");
27
- var import_path = require("path");
28
- function copyComponents({
29
- templateDir,
30
- outputDir,
31
- versionComment,
32
- override = true
33
- }) {
34
- if ((0, import_fs.existsSync)(outputDir) && !override) {
35
- throw new Error(
36
- `Output directory already exists: ${outputDir}. Use --override to overwrite.`
37
- );
38
- }
39
- const files = (0, import_fs.readdirSync)(templateDir, { withFileTypes: true });
40
- for (const file of files) {
41
- if (file.isFile() && file.name.endsWith(".tsx") && versionComment) {
42
- const filePath = (0, import_path.join)(templateDir, file.name);
43
- const content = (0, import_fs.readFileSync)(filePath, "utf8");
44
- (0, import_fs.writeFileSync)(filePath, versionComment + content, "utf8");
45
- }
46
- }
47
- (0, import_fs.cpSync)(templateDir, outputDir, { recursive: true });
48
- }
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- copyComponents
52
- });
@@ -1,33 +0,0 @@
1
- // src/copy-components.ts
2
- import {
3
- readdirSync,
4
- readFileSync,
5
- writeFileSync,
6
- existsSync,
7
- cpSync
8
- } from "fs";
9
- import { join } from "path";
10
- function copyComponents({
11
- templateDir,
12
- outputDir,
13
- versionComment,
14
- override = true
15
- }) {
16
- if (existsSync(outputDir) && !override) {
17
- throw new Error(
18
- `Output directory already exists: ${outputDir}. Use --override to overwrite.`
19
- );
20
- }
21
- const files = readdirSync(templateDir, { withFileTypes: true });
22
- for (const file of files) {
23
- if (file.isFile() && file.name.endsWith(".tsx") && versionComment) {
24
- const filePath = join(templateDir, file.name);
25
- const content = readFileSync(filePath, "utf8");
26
- writeFileSync(filePath, versionComment + content, "utf8");
27
- }
28
- }
29
- cpSync(templateDir, outputDir, { recursive: true });
30
- }
31
- export {
32
- copyComponents
33
- };
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/read-config.ts
21
- var read_config_exports = {};
22
- __export(read_config_exports, {
23
- readConfig: () => readConfig
24
- });
25
- module.exports = __toCommonJS(read_config_exports);
26
- var import_fs = require("fs");
27
- var import_path = require("path");
28
- function readConfig(cwd = process.cwd()) {
29
- const defaultConfig = {
30
- outDir: "src/components/ui",
31
- override: true
32
- };
33
- const configPath = (0, import_path.join)(cwd, "components.json");
34
- if (!(0, import_fs.existsSync)(configPath)) {
35
- return defaultConfig;
36
- }
37
- const config = JSON.parse(
38
- (0, import_fs.readFileSync)(configPath, "utf-8")
39
- );
40
- return {
41
- ...defaultConfig,
42
- ...config
43
- };
44
- }
45
- // Annotate the CommonJS export names for ESM import in node:
46
- 0 && (module.exports = {
47
- readConfig
48
- });
@@ -1,23 +0,0 @@
1
- // src/read-config.ts
2
- import { existsSync, readFileSync } from "fs";
3
- import { join } from "path";
4
- function readConfig(cwd = process.cwd()) {
5
- const defaultConfig = {
6
- outDir: "src/components/ui",
7
- override: true
8
- };
9
- const configPath = join(cwd, "components.json");
10
- if (!existsSync(configPath)) {
11
- return defaultConfig;
12
- }
13
- const config = JSON.parse(
14
- readFileSync(configPath, "utf-8")
15
- );
16
- return {
17
- ...defaultConfig,
18
- ...config
19
- };
20
- }
21
- export {
22
- readConfig
23
- };