@75neo/ui 1.0.0 → 1.0.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/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as detectFramework, D as FRAMEWORKS, E as writeConfig, S as detectCssEntry, T as readConfig, _ as CONFIG_FILE, a as resolveItems, c as detectPackageManager, g as withTheme, h as withImport, i as fetchItem, k as ValidationError, l as install, n as collectDependencies, p as writeFiles, r as fetchIndex, t as RegistryError, u as InstallError, v as ConfigError, w as detectPaths, x as configPath, y as DEFAULT_ALIASES } from "./registry-C1lAzYLJ.mjs";
2
+ import { A as ValidationError, C as detectCssEntry, D as writeConfig, E as readConfig, O as FRAMEWORKS, S as configPath, T as detectPaths, _ as withTheme, a as resolveItems, b as DEFAULT_ALIASES, c as detectPackageManager, d as InstallError, g as withImport, i as fetchItem, l as install, m as writeFiles, n as collectDependencies, r as fetchIndex, t as RegistryError, v as CONFIG_FILE, w as detectFramework, y as ConfigError } from "./registry-MyjlWnIK.mjs";
3
3
  import { existsSync } from "node:fs";
4
4
  import { readFile, writeFile } from "node:fs/promises";
5
5
  import path from "node:path";
@@ -44,10 +44,11 @@ async function runInit(args) {
44
44
  console.log(`${green("done")} updated ${css}`);
45
45
  if (!args.install) return;
46
46
  const manager = detectPackageManager(cwd);
47
- console.log(dim(`${manager} add ${PACKAGE}`));
47
+ console.log(dim(`${manager} add -D ${PACKAGE}`));
48
48
  await install([PACKAGE], {
49
49
  cwd,
50
- manager
50
+ manager,
51
+ dev: true
51
52
  });
52
53
  }
53
54
  async function runAdd(args) {
package/dist/index.d.mts CHANGED
@@ -200,6 +200,7 @@ interface InstallOptions {
200
200
  readonly manager: PackageManager;
201
201
  readonly dev?: boolean;
202
202
  }
203
+ export declare const installArgs: (packages: readonly string[], manager: PackageManager, dev?: boolean) => string[];
203
204
  export declare function install(packages: readonly string[], options: InstallOptions): Promise<void>;
204
205
  //#endregion
205
206
  //#region src/registry.d.ts
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { A as configSchema, B as registryItemSchema, C as detectFramework, D as FRAMEWORKS, E as writeConfig, F as parseJson, I as registryFileEntrySchema, L as registryFileSchema, M as frameworkSchema, N as itemTypeSchema, O as ITEM_TYPES, P as jsonSchemas, R as registryIndexEntrySchema, S as detectCssEntry, T as readConfig, V as validate, _ as CONFIG_FILE, a as resolveItems, b as DEFAULT_REGISTRY, c as detectPackageManager, d as destinationFor, f as rewriteImports, g as withTheme, h as withImport, i as fetchItem, j as cssBlockSchema, k as ValidationError, l as install, m as serialize, n as collectDependencies, o as stripNamespace, p as writeFiles, r as fetchIndex, s as PACKAGE_MANAGERS, t as RegistryError, u as InstallError, v as ConfigError, w as detectPaths, x as configPath, y as DEFAULT_ALIASES, z as registryIndexSchema } from "./registry-C1lAzYLJ.mjs";
2
- export { CONFIG_FILE, ConfigError, DEFAULT_ALIASES, DEFAULT_REGISTRY, FRAMEWORKS, ITEM_TYPES, InstallError, PACKAGE_MANAGERS, RegistryError, ValidationError, collectDependencies, configPath, configSchema, cssBlockSchema, destinationFor, detectCssEntry, detectFramework, detectPackageManager, detectPaths, fetchIndex, fetchItem, frameworkSchema, install, itemTypeSchema, jsonSchemas, parseJson, readConfig, registryFileEntrySchema, registryFileSchema, registryIndexEntrySchema, registryIndexSchema, registryItemSchema, resolveItems, rewriteImports, serialize, stripNamespace, validate, withImport, withTheme, writeConfig, writeFiles };
1
+ import { A as ValidationError, B as registryIndexSchema, C as detectCssEntry, D as writeConfig, E as readConfig, F as jsonSchemas, H as validate, I as parseJson, L as registryFileEntrySchema, M as cssBlockSchema, N as frameworkSchema, O as FRAMEWORKS, P as itemTypeSchema, R as registryFileSchema, S as configPath, T as detectPaths, V as registryItemSchema, _ as withTheme, a as resolveItems, b as DEFAULT_ALIASES, c as detectPackageManager, d as InstallError, f as destinationFor, g as withImport, h as serialize, i as fetchItem, j as configSchema, k as ITEM_TYPES, l as install, m as writeFiles, n as collectDependencies, o as stripNamespace, p as rewriteImports, r as fetchIndex, s as PACKAGE_MANAGERS, t as RegistryError, u as installArgs, v as CONFIG_FILE, w as detectFramework, x as DEFAULT_REGISTRY, y as ConfigError, z as registryIndexEntrySchema } from "./registry-MyjlWnIK.mjs";
2
+ export { CONFIG_FILE, ConfigError, DEFAULT_ALIASES, DEFAULT_REGISTRY, FRAMEWORKS, ITEM_TYPES, InstallError, PACKAGE_MANAGERS, RegistryError, ValidationError, collectDependencies, configPath, configSchema, cssBlockSchema, destinationFor, detectCssEntry, detectFramework, detectPackageManager, detectPaths, fetchIndex, fetchItem, frameworkSchema, install, installArgs, itemTypeSchema, jsonSchemas, parseJson, readConfig, registryFileEntrySchema, registryFileSchema, registryIndexEntrySchema, registryIndexSchema, registryItemSchema, resolveItems, rewriteImports, serialize, stripNamespace, validate, withImport, withTheme, writeConfig, writeFiles };
@@ -263,13 +263,14 @@ function detectPackageManager(cwd) {
263
263
  directory = parent;
264
264
  }
265
265
  }
266
+ const installArgs = (packages, manager, dev = false) => [
267
+ ...ADD[manager],
268
+ ...dev ? ["-D"] : [],
269
+ ...packages
270
+ ];
266
271
  function install(packages, options) {
267
272
  if (packages.length === 0) return Promise.resolve();
268
- const args = [
269
- ...ADD[options.manager],
270
- ...options.dev === true ? ["-D"] : [],
271
- ...packages
272
- ];
273
+ const args = installArgs(packages, options.manager, options.dev ?? false);
273
274
  return new Promise((resolve, reject) => {
274
275
  const child = spawn(options.manager, args, {
275
276
  cwd: options.cwd,
@@ -332,4 +333,4 @@ async function resolveItems(registry, framework, names) {
332
333
  }
333
334
  const collectDependencies = (items) => [...new Set(items.flatMap((item) => [...item.dependencies ?? []]))].sort();
334
335
  //#endregion
335
- export { configSchema as A, registryItemSchema as B, detectFramework as C, FRAMEWORKS as D, writeConfig as E, parseJson as F, registryFileEntrySchema as I, registryFileSchema as L, frameworkSchema as M, itemTypeSchema as N, ITEM_TYPES as O, jsonSchemas as P, registryIndexEntrySchema as R, detectCssEntry as S, readConfig as T, validate as V, CONFIG_FILE as _, resolveItems as a, DEFAULT_REGISTRY as b, detectPackageManager as c, destinationFor as d, rewriteImports as f, withTheme as g, withImport as h, fetchItem as i, cssBlockSchema as j, ValidationError as k, install as l, serialize as m, collectDependencies as n, stripNamespace as o, writeFiles as p, fetchIndex as r, PACKAGE_MANAGERS as s, RegistryError as t, InstallError as u, ConfigError as v, detectPaths as w, configPath as x, DEFAULT_ALIASES as y, registryIndexSchema as z };
336
+ export { ValidationError as A, registryIndexSchema as B, detectCssEntry as C, writeConfig as D, readConfig as E, jsonSchemas as F, validate as H, parseJson as I, registryFileEntrySchema as L, cssBlockSchema as M, frameworkSchema as N, FRAMEWORKS as O, itemTypeSchema as P, registryFileSchema as R, configPath as S, detectPaths as T, registryItemSchema as V, withTheme as _, resolveItems as a, DEFAULT_ALIASES as b, detectPackageManager as c, InstallError as d, destinationFor as f, withImport as g, serialize as h, fetchItem as i, configSchema as j, ITEM_TYPES as k, install as l, writeFiles as m, collectDependencies as n, stripNamespace as o, rewriteImports as p, fetchIndex as r, PACKAGE_MANAGERS as s, RegistryError as t, installArgs as u, CONFIG_FILE as v, detectFramework as w, DEFAULT_REGISTRY as x, ConfigError as y, registryIndexEntrySchema as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@75neo/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "The 75NeoUI installer and animation stylesheet",
5
5
  "keywords": [
6
6
  "75neoui",
@@ -40,6 +40,14 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
+ "scripts": {
44
+ "build": "tsdown",
45
+ "dev": "tsdown --watch",
46
+ "typecheck": "tsc -p tsconfig.test.json",
47
+ "prepack": "tsdown",
48
+ "test": "vitest run",
49
+ "test:watch": "vitest"
50
+ },
43
51
  "dependencies": {
44
52
  "yargs": "^18.1.0",
45
53
  "zod": "^4.5.4"
@@ -53,12 +61,5 @@
53
61
  },
54
62
  "engines": {
55
63
  "node": ">=20"
56
- },
57
- "scripts": {
58
- "build": "tsdown",
59
- "dev": "tsdown --watch",
60
- "typecheck": "tsc -p tsconfig.test.json",
61
- "test": "vitest run",
62
- "test:watch": "vitest"
63
64
  }
64
- }
65
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 75Neo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.