@chakra-ui/cli
Advanced tools
Comparing version 0.0.0-pr-202215132532 to 0.0.0-v2-latest-20241001130949
#!/usr/bin/env node | ||
const { run } = require("../dist/index.js") | ||
import { run } from "../dist/esm/index.mjs" | ||
@@ -4,0 +4,0 @@ run().catch((e) => { |
144
package.json
{ | ||
"name": "@chakra-ui/cli", | ||
"version": "0.0.0-pr-202215132532", | ||
"version": "0.0.0-v2-latest-20241001130949", | ||
"description": "Generate theme typings for autocomplete", | ||
@@ -17,3 +17,6 @@ "keywords": [ | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.mjs", | ||
"types": "dist/types/index.d.ts", | ||
"sideEffects": false, | ||
@@ -37,26 +40,125 @@ "files": [ | ||
}, | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"build": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist --source-maps", | ||
"dev": "node bin/index.js tokens ../../website/theme.ts" | ||
}, | ||
"dependencies": { | ||
"@chakra-ui/utils": "^0.0.0-pr-202215132532", | ||
"cli-check-node": "^1.3.4", | ||
"cli-handle-unhandled": "^1.1.1", | ||
"bundle-n-require": "^1.0.1", | ||
"chokidar": "^3.5.3", | ||
"cli-welcome": "^2.2.2", | ||
"commander": "^6.2.1", | ||
"module-alias": "^2.2.2", | ||
"ora": "^5.3.0", | ||
"prettier": "^2.4.1", | ||
"regenerator-runtime": "^0.13.7", | ||
"ts-node": "10.4.0", | ||
"tsconfig-paths": "^3.11.0", | ||
"update-notifier": "^5.0.1" | ||
"commander": "^11.0.0", | ||
"ora": "^7.0.1", | ||
"prettier": "^3.0.2", | ||
"update-notifier": "^6.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/module-alias": "^2.0.1", | ||
"@types/ora": "^3.2.0", | ||
"@types/update-notifier": "5.0.0" | ||
"@types/update-notifier": "6.0.4" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/types/index.d.mts", | ||
"default": "./dist/esm/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/index.d.ts", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"./config": { | ||
"import": { | ||
"types": "./dist/types/config.d.mts", | ||
"default": "./dist/esm/config.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/config.d.ts", | ||
"default": "./dist/cjs/config.cjs" | ||
} | ||
}, | ||
"./create-theme-typings-interface": { | ||
"import": { | ||
"types": "./dist/types/create-theme-typings-interface.d.mts", | ||
"default": "./dist/esm/create-theme-typings-interface.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/create-theme-typings-interface.d.ts", | ||
"default": "./dist/cjs/create-theme-typings-interface.cjs" | ||
} | ||
}, | ||
"./extract-color-schemes": { | ||
"import": { | ||
"types": "./dist/types/extract-color-schemes.d.mts", | ||
"default": "./dist/esm/extract-color-schemes.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/extract-color-schemes.d.ts", | ||
"default": "./dist/cjs/extract-color-schemes.cjs" | ||
} | ||
}, | ||
"./extract-component-types": { | ||
"import": { | ||
"types": "./dist/types/extract-component-types.d.mts", | ||
"default": "./dist/esm/extract-component-types.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/extract-component-types.d.ts", | ||
"default": "./dist/cjs/extract-component-types.cjs" | ||
} | ||
}, | ||
"./extract-property-keys": { | ||
"import": { | ||
"types": "./dist/types/extract-property-keys.d.mts", | ||
"default": "./dist/esm/extract-property-keys.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/extract-property-keys.d.ts", | ||
"default": "./dist/cjs/extract-property-keys.cjs" | ||
} | ||
}, | ||
"./extract-property-paths": { | ||
"import": { | ||
"types": "./dist/types/extract-property-paths.d.mts", | ||
"default": "./dist/esm/extract-property-paths.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/extract-property-paths.d.ts", | ||
"default": "./dist/cjs/extract-property-paths.cjs" | ||
} | ||
}, | ||
"./extract-semantic-token-keys": { | ||
"import": { | ||
"types": "./dist/types/extract-semantic-token-keys.d.mts", | ||
"default": "./dist/esm/extract-semantic-token-keys.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/extract-semantic-token-keys.d.ts", | ||
"default": "./dist/cjs/extract-semantic-token-keys.cjs" | ||
} | ||
}, | ||
"./generate-theme-typings": { | ||
"import": { | ||
"types": "./dist/types/generate-theme-typings.d.mts", | ||
"default": "./dist/esm/generate-theme-typings.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/generate-theme-typings.d.ts", | ||
"default": "./dist/cjs/generate-theme-typings.cjs" | ||
} | ||
}, | ||
"./resolve-output-path": { | ||
"import": { | ||
"types": "./dist/types/resolve-output-path.d.mts", | ||
"default": "./dist/esm/resolve-output-path.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/resolve-output-path.d.ts", | ||
"default": "./dist/cjs/resolve-output-path.cjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf dist .turbo", | ||
"build:fast": "tsup src --format cjs --shims", | ||
"build": "tsup src --format cjs --shims", | ||
"dev": "pnpm build:fast --watch", | ||
"typecheck": " tsc --noEmit" | ||
} | ||
} | ||
} |
@@ -18,10 +18,14 @@ # @chakra-ui/cli | ||
```sh | ||
$ npx @chakra-ui/cli --help | ||
$ npx @chakra-ui/cli tokens --help | ||
Usage: chakra-cli tokens [options] | ||
Usage: chakra-cli tokens [options] <source> | ||
Options: | ||
--out <path> output directory e.g. | ||
node_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts | ||
-h, --help display help for command | ||
--out <path> output file e.g. node_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts | ||
--strict-component-types Generate strict types for props variant and size | ||
--strict-token-types Generate strict types for theme tokens (e.g. color, spacing) | ||
--no-format Disable auto formatting | ||
--watch [path] Watch directory for changes and rebuild | ||
--template <template> Choose the template to use for the generation (choices: "default", "augmentation", default: "default" | ||
-h, --help display help for command | ||
@@ -28,0 +32,0 @@ Example call: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
7
2
50
1005
47
2
Yes
40731
+ Addedbundle-n-require@^1.0.1
+ Addedchokidar@^3.5.3
+ Added@esbuild/aix-ppc64@0.20.2(transitive)
+ Added@esbuild/android-arm@0.20.2(transitive)
+ Added@esbuild/android-arm64@0.20.2(transitive)
+ Added@esbuild/android-x64@0.20.2(transitive)
+ Added@esbuild/darwin-arm64@0.20.2(transitive)
+ Added@esbuild/darwin-x64@0.20.2(transitive)
+ Added@esbuild/freebsd-arm64@0.20.2(transitive)
+ Added@esbuild/freebsd-x64@0.20.2(transitive)
+ Added@esbuild/linux-arm@0.20.2(transitive)
+ Added@esbuild/linux-arm64@0.20.2(transitive)
+ Added@esbuild/linux-ia32@0.20.2(transitive)
+ Added@esbuild/linux-loong64@0.20.2(transitive)
+ Added@esbuild/linux-mips64el@0.20.2(transitive)
+ Added@esbuild/linux-ppc64@0.20.2(transitive)
+ Added@esbuild/linux-riscv64@0.20.2(transitive)
+ Added@esbuild/linux-s390x@0.20.2(transitive)
+ Added@esbuild/linux-x64@0.20.2(transitive)
+ Added@esbuild/netbsd-x64@0.20.2(transitive)
+ Added@esbuild/openbsd-x64@0.20.2(transitive)
+ Added@esbuild/sunos-x64@0.20.2(transitive)
+ Added@esbuild/win32-arm64@0.20.2(transitive)
+ Added@esbuild/win32-ia32@0.20.2(transitive)
+ Added@esbuild/win32-x64@0.20.2(transitive)
+ Added@pnpm/config.env-replace@1.1.0(transitive)
+ Added@pnpm/network.ca-file@1.0.2(transitive)
+ Added@pnpm/npm-conf@2.3.1(transitive)
+ Added@sindresorhus/is@5.6.0(transitive)
+ Added@szmarczak/http-timer@5.0.1(transitive)
+ Added@types/http-cache-semantics@4.0.4(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedanymatch@3.1.3(transitive)
+ Addedbinary-extensions@2.3.0(transitive)
+ Addedbl@5.1.0(transitive)
+ Addedboxen@7.1.1(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedbundle-n-require@1.1.1(transitive)
+ Addedcacheable-lookup@7.0.0(transitive)
+ Addedcacheable-request@10.2.14(transitive)
+ Addedcamelcase@7.0.1(transitive)
+ Addedchalk@5.4.1(transitive)
+ Addedchokidar@3.6.0(transitive)
+ Addedci-info@3.9.0(transitive)
+ Addedcli-boxes@3.0.0(transitive)
+ Addedcli-cursor@4.0.0(transitive)
+ Addedcommander@11.1.0(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addedconfigstore@6.0.0(transitive)
+ Addedcrypto-random-string@4.0.0(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addeddot-prop@6.0.1(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@10.4.09.2.2(transitive)
+ Addedesbuild@0.20.2(transitive)
+ Addedescape-goat@4.0.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedform-data-encoder@2.1.4(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedgot@12.6.1(transitive)
+ Addedgraceful-fs@4.2.10(transitive)
+ Addedhas-yarn@3.0.0(transitive)
+ Addedhttp2-wrapper@2.2.1(transitive)
+ Addedimport-lazy@4.0.0(transitive)
+ Addedis-binary-path@2.1.0(transitive)
+ Addedis-ci@3.0.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-interactive@2.0.0(transitive)
+ Addedis-npm@6.0.0(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-unicode-supported@1.3.0(transitive)
+ Addedis-yarn-global@0.4.1(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlatest-version@7.0.0(transitive)
+ Addedlog-symbols@5.1.0(transitive)
+ Addedlowercase-keys@3.0.0(transitive)
+ Addedmimic-response@3.1.04.0.0(transitive)
+ Addednode-eval@2.0.0(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addednormalize-url@8.0.1(transitive)
+ Addedora@7.0.1(transitive)
+ Addedp-cancelable@3.0.0(transitive)
+ Addedpackage-json@8.1.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedprettier@3.4.2(transitive)
+ Addedproto-list@1.2.4(transitive)
+ Addedpupa@3.1.0(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedreaddirp@3.6.0(transitive)
+ Addedregistry-auth-token@5.0.3(transitive)
+ Addedregistry-url@6.0.1(transitive)
+ Addedresolve-alpn@1.2.1(transitive)
+ Addedresponselike@3.0.0(transitive)
+ Addedrestore-cursor@4.0.0(transitive)
+ Addedsemver-diff@4.0.0(transitive)
+ Addedstdin-discarder@0.1.0(transitive)
+ Addedstring-width@5.1.26.1.0(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtype-fest@1.4.02.19.0(transitive)
+ Addedunique-string@3.0.0(transitive)
+ Addedupdate-notifier@6.0.2(transitive)
+ Addedwidest-line@4.0.1(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
+ Addedxdg-basedir@5.1.0(transitive)
- Removedcli-check-node@^1.3.4
- Removedcli-handle-unhandled@^1.1.1
- Removedmodule-alias@^2.2.2
- Removedregenerator-runtime@^0.13.7
- Removedts-node@10.4.0
- Removedtsconfig-paths@^3.11.0
- Removed@chakra-ui/utils@0.0.0-v3-20240109123510(transitive)
- Removed@cspotcode/source-map-consumer@0.8.0(transitive)
- Removed@cspotcode/source-map-support@0.7.0(transitive)
- Removed@sindresorhus/is@0.14.0(transitive)
- Removed@szmarczak/http-timer@1.1.2(transitive)
- Removed@tsconfig/node10@1.0.11(transitive)
- Removed@tsconfig/node12@1.0.11(transitive)
- Removed@tsconfig/node14@1.0.3(transitive)
- Removed@tsconfig/node16@1.0.4(transitive)
- Removed@types/json5@0.0.29(transitive)
- Removed@types/lodash@4.17.14(transitive)
- Removed@types/lodash.mergewith@4.6.8(transitive)
- Removed@types/node@22.10.5(transitive)
- Removedacorn@8.14.0(transitive)
- Removedacorn-walk@8.3.4(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedarg@4.1.3(transitive)
- Removedbl@4.1.0(transitive)
- Removedboxen@5.1.2(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedcacheable-request@6.1.0(transitive)
- Removedcamelcase@6.3.0(transitive)
- Removedchalk@3.0.04.1.2(transitive)
- Removedci-info@2.0.0(transitive)
- Removedcli-boxes@2.2.1(transitive)
- Removedcli-check-node@1.3.4(transitive)
- Removedcli-cursor@3.1.0(transitive)
- Removedcli-handle-error@4.4.0(transitive)
- Removedcli-handle-unhandled@1.1.1(transitive)
- Removedclone@1.0.4(transitive)
- Removedclone-response@1.0.3(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcommander@6.2.1(transitive)
- Removedconfigstore@5.0.1(transitive)
- Removedcreate-require@1.1.1(transitive)
- Removedcrypto-random-string@2.0.0(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddefaults@1.0.4(transitive)
- Removeddefer-to-connect@1.1.3(transitive)
- Removeddiff@4.0.2(transitive)
- Removeddot-prop@5.3.0(transitive)
- Removedduplexer3@0.1.5(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedescape-goat@2.1.1(transitive)
- Removedget-stream@4.1.05.2.0(transitive)
- Removedgot@9.6.0(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhas-yarn@2.1.0(transitive)
- Removedimport-lazy@2.1.0(transitive)
- Removedis-ci@2.0.0(transitive)
- Removedis-interactive@1.0.0(transitive)
- Removedis-npm@5.0.0(transitive)
- Removedis-unicode-supported@0.1.0(transitive)
- Removedis-yarn-global@0.3.0(transitive)
- Removedjson-buffer@3.0.0(transitive)
- Removedjson5@1.0.2(transitive)
- Removedkeyv@3.1.0(transitive)
- Removedlatest-version@5.1.0(transitive)
- Removedlodash.mergewith@4.6.2(transitive)
- Removedlog-symbols@3.0.04.1.0(transitive)
- Removedlowercase-keys@1.0.12.0.0(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removedmodule-alias@2.2.3(transitive)
- Removednormalize-url@4.5.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedora@5.4.1(transitive)
- Removedp-cancelable@1.1.0(transitive)
- Removedpackage-json@6.5.0(transitive)
- Removedprepend-http@2.0.0(transitive)
- Removedprettier@2.8.8(transitive)
- Removedpump@3.0.2(transitive)
- Removedpupa@2.1.1(transitive)
- Removedreact@19.0.0(transitive)
- Removedregenerator-runtime@0.13.11(transitive)
- Removedregistry-auth-token@4.2.2(transitive)
- Removedregistry-url@5.1.0(transitive)
- Removedresponselike@1.0.2(transitive)
- Removedrestore-cursor@3.1.0(transitive)
- Removedsemver@6.3.1(transitive)
- Removedsemver-diff@3.1.1(transitive)
- Removedstrip-bom@3.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedto-readable-stream@1.0.0(transitive)
- Removedts-node@10.4.0(transitive)
- Removedtsconfig-paths@3.15.0(transitive)
- Removedtype-fest@0.20.2(transitive)
- Removedtypescript@5.7.2(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedunique-string@2.0.0(transitive)
- Removedupdate-notifier@5.1.0(transitive)
- Removedurl-parse-lax@3.0.0(transitive)
- Removedwcwidth@1.0.1(transitive)
- Removedwidest-line@3.1.0(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxdg-basedir@4.0.0(transitive)
- Removedyn@3.1.1(transitive)
Updatedcommander@^11.0.0
Updatedora@^7.0.1
Updatedprettier@^3.0.2
Updatedupdate-notifier@^6.0.2