|
2 | 2 | "name": "@poppinss/validator-lite",
|
3 | 3 | "version": "1.0.3",
|
4 | 4 | "description": "Simple validation library",
|
5 |
| - "main": "build/index.js", |
| 5 | + "type": "module", |
6 | 6 | "files": [
|
7 |
| - "build/src", |
8 |
| - "build/index.d.ts", |
9 |
| - "build/index.js" |
| 7 | + "build", |
| 8 | + "!build/bin", |
| 9 | + "!build/tests" |
10 | 10 | ],
|
| 11 | + "exports": { |
| 12 | + ".": "./build/index.js", |
| 13 | + "./types": "./build/types.js" |
| 14 | + }, |
11 | 15 | "scripts": {
|
12 |
| - "mrm": "mrm --preset=@adonisjs/mrm-preset", |
13 | 16 | "pretest": "npm run lint",
|
14 |
| - "test": "npm run vscode:test", |
15 |
| - "vscode:test": "node -r @adonisjs/require-ts/build/register bin/test.ts", |
16 |
| - "clean": "del-cli build", |
17 |
| - "compile": "npm run lint && npm run clean && tsc", |
18 |
| - "build": "npm run compile", |
19 |
| - "prepublishOnly": "npm run build", |
20 |
| - "lint": "eslint . --ext=.ts", |
| 17 | + "test": "c8 npm run quick:test", |
| 18 | + "lint": "eslint .", |
21 | 19 | "format": "prettier --write .",
|
22 |
| - "commit": "git-cz", |
23 |
| - "release": "np --message=\"chore(release): %s\"", |
| 20 | + "typecheck": "tsc --noEmit", |
| 21 | + "precompile": "npm run lint", |
| 22 | + "compile": "tsup-node && tsc --emitDeclarationOnly --declaration", |
| 23 | + "build": "npm run compile", |
24 | 24 | "version": "npm run build",
|
25 |
| - "sync-labels": "github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json poppinss/validator-lite" |
26 |
| - }, |
27 |
| - "publishConfig": { |
28 |
| - "access": "public" |
29 |
| - }, |
30 |
| - "dependencies": { |
31 |
| - "validator": "^13.9.0" |
| 25 | + "prepublishOnly": "npm run build", |
| 26 | + "release": "release-it", |
| 27 | + "quick:test": "node --import=ts-node-maintained/register/esm --enable-source-maps bin/test.ts" |
32 | 28 | },
|
33 | 29 | "devDependencies": {
|
34 |
| - "@adonisjs/mrm-preset": "^5.0.3", |
35 |
| - "@adonisjs/require-ts": "^2.0.13", |
36 |
| - "@japa/assert": "^1.4.1", |
37 |
| - "@japa/expect-type": "^1.0.3", |
38 |
| - "@japa/run-failed-tests": "^1.1.1", |
39 |
| - "@japa/runner": "^2.5.1", |
40 |
| - "@japa/spec-reporter": "^1.3.3", |
41 |
| - "@types/node": "^18.15.2", |
42 |
| - "@types/validator": "^13.7.14", |
43 |
| - "commitizen": "^4.3.0", |
44 |
| - "cz-conventional-changelog": "^3.3.0", |
45 |
| - "del-cli": "^5.0.0", |
46 |
| - "eslint": "^8.36.0", |
47 |
| - "eslint-config-prettier": "^8.7.0", |
48 |
| - "eslint-plugin-adonis": "^2.1.1", |
49 |
| - "eslint-plugin-prettier": "^4.2.1", |
50 |
| - "github-label-sync": "^2.3.1", |
51 |
| - "husky": "^8.0.3", |
52 |
| - "np": "^7.6.3", |
53 |
| - "prettier": "^2.8.4", |
54 |
| - "typescript": "^4.9.5" |
| 30 | + "@adonisjs/eslint-config": "^2.0.0-beta.7", |
| 31 | + "@adonisjs/prettier-config": "^1.4.0", |
| 32 | + "@adonisjs/tsconfig": "^1.4.0", |
| 33 | + "@japa/assert": "^4.0.0", |
| 34 | + "@japa/expect-type": "^2.0.2", |
| 35 | + "@japa/runner": "^3.1.4", |
| 36 | + "@release-it/conventional-changelog": "^9.0.4", |
| 37 | + "@swc/core": "^1.10.3", |
| 38 | + "@types/node": "^22.10.2", |
| 39 | + "c8": "^10.1.3", |
| 40 | + "del-cli": "^6.0.0", |
| 41 | + "eslint": "^9.17.0", |
| 42 | + "prettier": "^3.4.2", |
| 43 | + "release-it": "^17.11.0", |
| 44 | + "ts-node-maintained": "^10.9.4", |
| 45 | + "tsup": "^8.3.5", |
| 46 | + "typescript": "^5.7.2" |
55 | 47 | },
|
| 48 | + "homepage": "https://github.com/poppinss/validator-lite#readme", |
56 | 49 | "repository": {
|
57 | 50 | "type": "git",
|
58 | 51 | "url": "git+https://github.com/poppinss/validator-lite.git"
|
59 | 52 | },
|
60 |
| - "author": "Julien Ripouteau <[email protected]>,poppinss,virk", |
61 |
| - "license": "MIT", |
62 | 53 | "bugs": {
|
63 | 54 | "url": "https://github.com/poppinss/validator-lite/issues"
|
64 | 55 | },
|
65 |
| - "homepage": "https://github.com/poppinss/validator-lite#readme", |
66 |
| - "eslintConfig": { |
67 |
| - "extends": [ |
68 |
| - "plugin:adonis/typescriptPackage", |
69 |
| - "prettier" |
70 |
| - ], |
71 |
| - "plugins": [ |
72 |
| - "prettier" |
73 |
| - ], |
74 |
| - "rules": { |
75 |
| - "prettier/prettier": [ |
76 |
| - "error", |
77 |
| - { |
78 |
| - "endOfLine": "auto" |
79 |
| - } |
80 |
| - ] |
81 |
| - } |
82 |
| - }, |
83 |
| - "eslintIgnore": [ |
84 |
| - "build" |
| 56 | + "author": "Julien Ripouteau <[email protected]>", |
| 57 | + "contributors": [ |
| 58 | + "Harminder Virk <[email protected]>" |
85 | 59 | ],
|
86 |
| - "prettier": { |
87 |
| - "trailingComma": "es5", |
88 |
| - "semi": false, |
89 |
| - "singleQuote": true, |
90 |
| - "useTabs": false, |
91 |
| - "quoteProps": "consistent", |
92 |
| - "bracketSpacing": true, |
93 |
| - "arrowParens": "always", |
94 |
| - "printWidth": 100 |
| 60 | + "license": "MIT", |
| 61 | + "publishConfig": { |
| 62 | + "access": "public", |
| 63 | + "provenance": true |
95 | 64 | },
|
96 |
| - "config": { |
97 |
| - "commitizen": { |
98 |
| - "path": "cz-conventional-changelog" |
99 |
| - } |
| 65 | + "tsup": { |
| 66 | + "entry": [ |
| 67 | + "index.ts" |
| 68 | + ], |
| 69 | + "outDir": "./build", |
| 70 | + "clean": true, |
| 71 | + "format": "esm", |
| 72 | + "dts": false, |
| 73 | + "sourcemap": false, |
| 74 | + "target": "esnext" |
100 | 75 | },
|
101 |
| - "np": { |
102 |
| - "contents": ".", |
103 |
| - "anyBranch": false |
| 76 | + "release-it": { |
| 77 | + "git": { |
| 78 | + "requireCleanWorkingDir": true, |
| 79 | + "requireUpstream": true, |
| 80 | + "commitMessage": "chore(release): ${version}", |
| 81 | + "tagAnnotation": "v${version}", |
| 82 | + "push": true, |
| 83 | + "tagName": "v${version}" |
| 84 | + }, |
| 85 | + "github": { |
| 86 | + "release": true |
| 87 | + }, |
| 88 | + "npm": { |
| 89 | + "publish": true, |
| 90 | + "skipChecks": true |
| 91 | + }, |
| 92 | + "plugins": { |
| 93 | + "@release-it/conventional-changelog": { |
| 94 | + "preset": { |
| 95 | + "name": "angular" |
| 96 | + } |
| 97 | + } |
| 98 | + } |
104 | 99 | },
|
105 |
| - "mrmConfig": { |
106 |
| - "core": true, |
107 |
| - "license": "MIT", |
108 |
| - "services": [ |
109 |
| - "github-actions" |
| 100 | + "c8": { |
| 101 | + "reporter": [ |
| 102 | + "text", |
| 103 | + "html" |
110 | 104 | ],
|
111 |
| - "minNodeVersion": "16.13.1", |
112 |
| - "probotApps": [], |
113 |
| - "runGhActionsOnWindows": false |
114 |
| - } |
| 105 | + "exclude": [ |
| 106 | + "tests/**" |
| 107 | + ] |
| 108 | + }, |
| 109 | + "prettier": "@adonisjs/prettier-config" |
115 | 110 | }
|
0 commit comments