-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
106 lines (106 loc) · 3.18 KB
/
package.json
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
{
"name": "@jsmini/get-selector",
"version": "0.2.0",
"description": "获取 DOM 元素的 CSS 选择器,类似 Chrome 浏览器的 copy selector 功能,但支持获取更短的 CSS 选择器",
"sideEffects": false,
"main": "dist/index.js",
"module": "dist/index.esm.js",
"exports": {
"node": {
"import": "./dist/index.mjs",
"default": "./dist/index.js"
},
"default": {
"import": "./dist/index.mjs",
"default": "./dist/index.js"
}
},
"types": "./types/index.d.ts",
"scripts": {
"preinstall": "npx only-allow npm",
"clean": "rimraf ./dist ./types",
"start": "http-server -p 3000 -c-1",
"test": "nyc mocha",
"release": "npm test && npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags",
"lint": "eslint -c .eslintrc.cjs 'src/**/*.ts'",
"lint:fix": "eslint --fix -c .eslintrc.cjs 'src/**/*.ts' --fix",
"prepare": "husky install",
"ci": "commit",
"cz": "git-cz",
"build:self": "rollup -c config/rollup.config.cjs",
"build:esm": "rollup -c config/rollup.config.esm.cjs",
"build:aio": "rollup -c config/rollup.config.aio.cjs",
"build": "npm run clean && npm run build:self && npm run build:esm && npm run build:aio",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"author": "jsmini",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/jsmini/get-selector.git"
},
"bugs": {
"url": "https://github.com/jsmini/get-selector/issues"
},
"files": [
"/dist",
"/types",
"*.d.ts"
],
"engines": {
"node": ">=14.0.0",
"npm": ">=6.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@commitlint/cz-commitlint": "^16.3.0",
"@commitlint/format": "^12.1.1",
"@commitlint/prompt-cli": "^16.3.0",
"@js-lib/cli": "^2.3.2",
"@jsmini/extend": "^0.4.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"babel-plugin-istanbul": "^6.1.1",
"commitizen": "^4.2.4",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"es5-shim": "^4.6.7",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"expect.js": "^0.3.1",
"http-server": "^14.1.1",
"husky": "^8.0.0",
"lint-staged": "^14.0.1",
"mocha": "^10.2.0",
"mocha-jsdom": "^2.0.0",
"nyc": "^15.1.0",
"prettier": "3.1.0",
"rimraf": "^5.0.5",
"rollup": "^3.29.4",
"rollup-plugin-typescript2": "^0.36.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"dependencies": {
}
}