Blame view

天文台pc/tianwentai-ui/node_modules/input-otp/package.json 3.05 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
  {
    "name": "input-otp",
    "version": "1.4.2",
    "author": "Guilherme Rodz <g@rodz.dev>",
    "description": "One-time password input component for React.",
    "license": "MIT",
    "homepage": "https://input-otp.rodz.dev/",
    "repository": {
      "type": "git",
      "url": "git+https://github.com/guilhermerodz/input-otp.git",
      "directory": "packages/input-otp"
    },
    "bugs": {
      "url": "https://github.com/guilhermerodz/input-otp/issues"
    },
    "keywords": [
      "react",
      "otp",
      "input",
      "accessible"
    ],
    "main": "./dist/index.js",
    "module": "./dist/index.mjs",
    "types": "./dist/index.d.ts",
    "files": [
      "dist"
    ],
    "exports": {
      ".": {
        "types": "./dist/index.d.ts",
        "module": "./dist/index.mjs",
        "import": "./dist/index.mjs",
        "require": "./dist/index.js",
        "default": "./dist/index.mjs"
      },
      "./package.json": "./package.json"
    },
    "scripts": {
      "type-check": "tsc --noEmit",
      "copy-readme": "cp ../../README.md ./README.md",
      "build": "run-s build:* copy-readme",
      "build:tsup": "tsup --dts --minify",
      "clean": "rimraf dist",
      "dev": "tsup --watch --dts",
      "lint": "run-p lint:*",
      "lint:eslint": "eslint src --ext .ts",
      "lint:eslint:fix": "eslint src --ext .ts --fix",
      "lint:format": "prettier --check \"src/**/*.ts\"",
      "lint:format:fix": "prettier --check \"src/**/*.ts\" --write",
      "lint:tsc": "tsc --project tsconfig.json --noEmit",
      "format": "prettier --write .",
      "release": "npm publish",
      "release:beta": "npm publish --tag beta"
    },
    "eslintConfig": {
      "root": true,
      "reportUnusedDisableDirectives": true,
      "ignorePatterns": [
        "**/build",
        "**/coverage",
        "**/dist"
      ],
      "parser": "@typescript-eslint/parser",
      "parserOptions": {
        "sourceType": "module",
        "ecmaVersion": 2020
      },
      "settings": {
        "import/parsers": {
          "@typescript-eslint/parser": [
            ".ts",
            ".tsx"
          ]
        },
        "import/resolver": {
          "typescript": true
        },
        "react": {
          "version": "detect"
        }
      },
      "plugins": [
        "@typescript-eslint",
        "import"
      ],
      "extends": [
        "plugin:react/jsx-runtime",
        "plugin:react-hooks/recommended",
        "eslint:recommended",
        "plugin:@typescript-eslint/recommended",
        "plugin:@typescript-eslint/stylistic",
        "plugin:import/recommended",
        "plugin:import/typescript",
        "prettier"
      ],
      "env": {
        "browser": true,
        "es2020": true
      },
      "rules": {
        "react/jsx-key": [
          "error",
          {
            "checkFragmentShorthand": true
          }
        ],
        "react-hooks/exhaustive-deps": "error",
        "@typescript-eslint/no-explicit-any": "off"
      }
    },
    "devDependencies": {
      "@types/react": "^18.2.55",
      "@types/react-dom": "^18.2.19",
      "react": "^18.2.0",
      "react-dom": "^18.2.0",
      "typescript": "^5.3.3"
    },
    "peerDependencies": {
      "react": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",
      "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc"
    }
  }