@rareprotocol/rare-cli 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +114 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19791,10 +19791,123 @@ function requiresExplicitConfirmation(commandPath2) {
19791
19791
  return confirmationRequiredCommands.has(commandPath2.join(" "));
19792
19792
  }
19793
19793
 
19794
+ // package.json
19795
+ var package_default = {
19796
+ name: "@rareprotocol/rare-cli",
19797
+ version: "1.0.2",
19798
+ description: "CLI tool for interacting with the RARE protocol smart contracts",
19799
+ type: "module",
19800
+ license: "MIT",
19801
+ repository: {
19802
+ type: "git",
19803
+ url: "https://github.com/superrare/rare-cli.git"
19804
+ },
19805
+ homepage: "https://github.com/superrare/rare-cli#readme",
19806
+ keywords: [
19807
+ "rare",
19808
+ "superrare",
19809
+ "nft",
19810
+ "ethereum",
19811
+ "cli",
19812
+ "auction",
19813
+ "erc721"
19814
+ ],
19815
+ engines: {
19816
+ node: ">=22"
19817
+ },
19818
+ publishConfig: {
19819
+ access: "public"
19820
+ },
19821
+ files: [
19822
+ "dist",
19823
+ "LICENSE"
19824
+ ],
19825
+ exports: {
19826
+ "./client": {
19827
+ import: "./dist/client.js",
19828
+ types: "./dist/client.d.ts"
19829
+ },
19830
+ "./contracts": {
19831
+ import: "./dist/contracts.js",
19832
+ types: "./dist/contracts.d.ts"
19833
+ },
19834
+ "./utils": {
19835
+ import: "./dist/utils.js",
19836
+ types: "./dist/utils.d.ts"
19837
+ }
19838
+ },
19839
+ typesVersions: {
19840
+ "*": {
19841
+ client: [
19842
+ "dist/client.d.ts"
19843
+ ],
19844
+ contracts: [
19845
+ "dist/contracts.d.ts"
19846
+ ],
19847
+ utils: [
19848
+ "dist/utils.d.ts"
19849
+ ]
19850
+ }
19851
+ },
19852
+ bin: {
19853
+ rare: "./dist/index.js"
19854
+ },
19855
+ scripts: {
19856
+ typecheck: "tsc --noEmit",
19857
+ build: "npm run typecheck && tsup",
19858
+ dev: "tsup --watch",
19859
+ "docs:generate": "typedoc && tsx scripts/postprocess-sdk-docs.ts && tsx scripts/generate-sdk-method-docs.ts && tsx scripts/generate-cli-docs.ts",
19860
+ "docs:serve": "npm run docs:generate && docusaurus start docs-site --no-open",
19861
+ "docs:build": "npm run docs:generate && docusaurus build docs-site --out-dir ../.docs-build",
19862
+ "docs:preview": "npm run docs:build && docusaurus serve docs-site --dir ../.docs-build --no-open",
19863
+ "generate:types": "set -a; [ -f .env ] && . ./.env; set +a; openapi-typescript ${RARE_API_BASE_URL:-https://api.superrare.com}/doc -o src/data-access/schema.d.ts",
19864
+ knip: "knip",
19865
+ lint: "eslint .",
19866
+ "lint:fix": "eslint . --fix",
19867
+ "test:typecheck": "tsc -p tsconfig.test.json --noEmit",
19868
+ test: "npm run build && npm run test:typecheck && vitest run test/unit test/integration test/e2e --config vitest.config.ts",
19869
+ "test:live": "npm run build && npm run test:typecheck && vitest run test/unit test/integration test/e2e test/e2e-live --config vitest.config.ts",
19870
+ "test:clear-locks": "node scripts/clear-locks.mjs",
19871
+ "test:coverage": "npm run build && npm run test:typecheck && vitest run test/unit test/integration test/e2e --coverage --config vitest.config.ts",
19872
+ prepare: "npm run build",
19873
+ prepublishOnly: "npm run build"
19874
+ },
19875
+ dependencies: {
19876
+ commander: "12.1.0",
19877
+ merkletreejs: "0.6.0",
19878
+ "openapi-fetch": "0.17.0",
19879
+ viem: "2.48.8"
19880
+ },
19881
+ devDependencies: {
19882
+ "@docusaurus/core": "^3.10.1",
19883
+ "@docusaurus/preset-classic": "^3.10.1",
19884
+ "@eslint/js": "10.0.1",
19885
+ "@types/node": "25.6.0",
19886
+ "@typescript-eslint/parser": "8.59.3",
19887
+ "@typescript-eslint/rule-tester": "8.59.2",
19888
+ "@typescript-eslint/utils": "8.59.2",
19889
+ "@vitest/coverage-v8": "4.1.5",
19890
+ eslint: "10.3.0",
19891
+ "eslint-plugin-functional": "9.0.4",
19892
+ globals: "17.6.0",
19893
+ knip: "5.88.1",
19894
+ "openapi-typescript": "7.13.0",
19895
+ tslib: "^2.8.1",
19896
+ tsup: "8.5.1",
19897
+ tsx: "^4.22.3",
19898
+ typedoc: "^0.28.19",
19899
+ "typedoc-plugin-markdown": "^4.11.0",
19900
+ typescript: "5.9.3",
19901
+ "typescript-eslint": "8.59.2",
19902
+ vitest: "4.1.5",
19903
+ webpack: "5.95.0"
19904
+ }
19905
+ };
19906
+
19794
19907
  // src/program.ts
19795
19908
  function createRareProgram() {
19796
19909
  const program2 = new Command21();
19797
- program2.name("rare").description("CLI tool for interacting with the RARE protocol smart contracts").version("1.0.0").option("--json", "output results as JSON");
19910
+ program2.name("rare").description("CLI tool for interacting with the RARE protocol smart contracts").version(package_default.version).option("--json", "output results as JSON");
19798
19911
  program2.hook("preAction", async (_thisCommand, actionCommand) => {
19799
19912
  const decision = confirmationDecision(program2, actionCommand);
19800
19913
  if (decision === "reject-json") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rareprotocol/rare-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI tool for interacting with the RARE protocol smart contracts",
5
5
  "type": "module",
6
6
  "license": "MIT",