diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..f1c2cc9 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,4 @@ +import { configApp } from '@adonisjs/eslint-config' +export default configApp({ + ignores: ['coverage'], +}) diff --git a/package.json b/package.json index 31a524e..5e2ca9a 100644 --- a/package.json +++ b/package.json @@ -19,18 +19,17 @@ "scripts": { "pretest": "npm run lint", "test": "c8 npm run quick:test", - "quick:test": "node --loader=ts-node/esm bin/test.ts", - "clean": "del-cli build", + "lint": "eslint", + "format": "prettier --write .", "typecheck": "tsc --noEmit", + "clean": "del-cli build", "precompile": "npm run lint && npm run clean", "compile": "tsup-node && tsc --emitDeclarationOnly --declaration", "build": "npm run compile", "release": "np", "version": "npm run build", "prepublishOnly": "npm run build", - "lint": "eslint . --ext=.ts", - "format": "prettier --write .", - "sync-labels": "github-label-sync --labels .github/labels.json vinejs/compiler" + "quick:test": "node --import=ts-node-maintained/register/esm --enable-source-maps bin/test.ts" }, "keywords": [ "vinejs", @@ -40,28 +39,27 @@ "author": "virk,vinejs", "license": "MIT", "devDependencies": { - "@adonisjs/eslint-config": "^1.3.0", - "@adonisjs/prettier-config": "^1.3.0", - "@adonisjs/tsconfig": "^1.3.0", - "@japa/assert": "^2.1.0", - "@japa/runner": "^3.1.1", - "@swc/core": "^1.4.11", - "@types/node": "^20.11.30", - "acorn": "^8.11.3", - "ajv": "^8.12.0", + "@adonisjs/eslint-config": "^2.0.0-beta.7", + "@adonisjs/prettier-config": "^1.4.0", + "@adonisjs/tsconfig": "^1.4.0", + "@japa/assert": "^3.0.0", + "@japa/runner": "^3.1.4", + "@swc/core": "^1.9.3", + "@types/node": "^22.10.1", + "acorn": "^8.14.0", + "ajv": "^8.17.1", "benchmark": "^2.1.4", - "c8": "^9.1.0", - "del-cli": "^5.1.0", - "eslint": "^8.57.0", - "github-label-sync": "^2.3.1", + "c8": "^10.1.2", + "del-cli": "^6.0.0", + "eslint": "^9.15.0", "js-beautify": "^1.15.1", - "np": "^10.0.2", - "prettier": "^3.2.5", - "tinybench": "^2.6.0", - "ts-node": "^10.9.2", - "tsup": "^8.0.2", - "typescript": "^5.4.3", - "zod": "^3.22.4" + "np": "^10.1.0", + "prettier": "^3.4.1", + "tinybench": "^3.0.6", + "ts-node-maintained": "^10.9.4", + "tsup": "^8.3.5", + "typescript": "^5.7.2", + "zod": "^3.23.8" }, "repository": { "type": "git", @@ -76,13 +74,43 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "provenance": true + }, + "tsup": { + "entry": [ + "./index.ts", + "./src/types.ts" + ], + "outDir": "./build", + "clean": true, + "format": "esm", + "dts": false, + "sourcemap": false, + "target": "esnext" }, - "np": { - "message": "chore(release): %s", - "tag": "latest", - "branch": "main", - "anyBranch": false + "release-it": { + "git": { + "requireCleanWorkingDir": true, + "requireUpstream": true, + "commitMessage": "chore(release): ${version}", + "tagAnnotation": "v${version}", + "push": true, + "tagName": "v${version}" + }, + "github": { + "release": true + }, + "npm": { + "publish": true, + "skipChecks": true + }, + "plugins": { + "@release-it/conventional-changelog": { + "preset": { + "name": "angular" + } + } + } }, "c8": { "reporter": [ @@ -95,20 +123,5 @@ "factories/**" ] }, - "eslintConfig": { - "extends": "@adonisjs/eslint-config/package" - }, - "prettier": "@adonisjs/prettier-config", - "tsup": { - "entry": [ - "./index.ts", - "./src/types.ts" - ], - "outDir": "./build", - "clean": true, - "format": "esm", - "dts": false, - "sourcemap": true, - "target": "esnext" - } + "prettier": "@adonisjs/prettier-config" }