1 | {
|
2 | "name": "nth-check",
|
3 | "version": "2.1.1",
|
4 | "description": "Parses and compiles CSS nth-checks to highly optimized functions.",
|
5 | "author": "Felix Boehm <me@feedic.com>",
|
6 | "license": "BSD-2-Clause",
|
7 | "sideEffects": false,
|
8 | "funding": {
|
9 | "url": "https://github.com/fb55/nth-check?sponsor=1"
|
10 | },
|
11 | "directories": {
|
12 | "lib": "lib/"
|
13 | },
|
14 | "main": "lib/index.js",
|
15 | "types": "lib/index.d.ts",
|
16 | "module": "lib/esm/index.js",
|
17 | "exports": {
|
18 | "require": "./lib/index.js",
|
19 | "import": "./lib/esm/index.js"
|
20 | },
|
21 | "files": [
|
22 | "lib/**/*"
|
23 | ],
|
24 | "scripts": {
|
25 | "test": "npm run test:jest && npm run lint",
|
26 | "test:jest": "jest",
|
27 | "lint": "npm run lint:es && npm run lint:prettier",
|
28 | "lint:es": "eslint .",
|
29 | "lint:prettier": "npm run prettier -- --check",
|
30 | "format": "npm run format:es && npm run format:prettier",
|
31 | "format:es": "npm run lint:es -- --fix",
|
32 | "format:prettier": "npm run prettier -- --write",
|
33 | "prettier": "prettier '**/*.{ts,md,json,yml}'",
|
34 | "build": "npm run build:cjs && npm run build:esm",
|
35 | "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/nth-check/$(git rev-parse HEAD)/src/",
|
36 | "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
37 | "prepare": "npm run build"
|
38 | },
|
39 | "repository": {
|
40 | "type": "git",
|
41 | "url": "https://github.com/fb55/nth-check"
|
42 | },
|
43 | "keywords": [
|
44 | "nth-child",
|
45 | "nth",
|
46 | "css"
|
47 | ],
|
48 | "bugs": {
|
49 | "url": "https://github.com/fb55/nth-check/issues"
|
50 | },
|
51 | "homepage": "https://github.com/fb55/nth-check",
|
52 | "dependencies": {
|
53 | "boolbase": "^1.0.0"
|
54 | },
|
55 | "devDependencies": {
|
56 | "@types/boolbase": "^1.0.1",
|
57 | "@types/jest": "^27.5.0",
|
58 | "@types/node": "^17.0.35",
|
59 | "@typescript-eslint/eslint-plugin": "^5.25.0",
|
60 | "@typescript-eslint/parser": "^5.25.0",
|
61 | "eslint": "^8.15.0",
|
62 | "eslint-config-prettier": "^8.5.0",
|
63 | "jest": "^27.5.1",
|
64 | "prettier": "^2.6.2",
|
65 | "ts-jest": "^27.1.4",
|
66 | "typescript": "^4.6.4"
|
67 | },
|
68 | "jest": {
|
69 | "preset": "ts-jest",
|
70 | "testEnvironment": "node",
|
71 | "moduleNameMapper": {
|
72 | "^(.*)\\.js$": "$1"
|
73 | }
|
74 | },
|
75 | "prettier": {
|
76 | "tabWidth": 4
|
77 | }
|
78 | }
|