Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/cli

Package Overview
Dependencies
Maintainers
2
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/cli - npm Package Compare versions

Comparing version 0.0.0-pr-202215132532 to 0.0.0-v2-latest-20241001130949

dist/cjs/config.cjs

2

bin/index.js
#!/usr/bin/env node
const { run } = require("../dist/index.js")
import { run } from "../dist/esm/index.mjs"

@@ -4,0 +4,0 @@ run().catch((e) => {

{
"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:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc