Skip to content

Commit

Permalink
chore: add tsup bundling (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jul 28, 2023
1 parent 40c5c2e commit 627ee41
Showing 1 changed file with 52 additions and 41 deletions.
93 changes: 52 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
{
"name": "@vinejs/vine",
"version": "1.5.3",
"description": "Form data validation library for Node.js",
"type": "module",
"version": "1.5.3",
"engines": {
"node": ">=18.16.0"
},
"main": "build/index.js",
"type": "module",
"files": [
"build/src",
"build/factories",
"build/index.d.ts",
"build/index.js"
"build"
],
"exports": {
".": "./build/index.js",
"./defaults": "./build/src/defaults.js",
"./factories": "./build/factories/main.js",
"./types": "./build/src/types.js"
},
"engines": {
"node": ">=18.16.0"
},
"scripts": {
"pretest": "npm run lint",
"test": "c8 npm run quick:test",
"clean": "del-cli build",
"prebenchmark": "npm run build",
"benchmark": "node build/benchmarks/flat_object.js && node build/benchmarks/nested_object.js && node build/benchmarks/array.js && node build/benchmarks/union.js",
"typecheck": "tsc --noEmit",
"compile": "npm run lint && npm run clean && tsc",
"compile": "npm run lint && npm run clean && tsup-node",
"build": "npm run compile",
"release": "np",
"version": "npm run build",
Expand All @@ -35,13 +32,6 @@
"sync-labels": "github-label-sync --labels .github/labels.json vinejs/vine",
"quick:test": "node --loader=ts-node/esm --enable-source-maps bin/test.ts"
},
"publishConfig": {
"access": "public",
"tag": "latest"
},
"keywords": [],
"author": "virk,vinejs",
"license": "MIT",
"devDependencies": {
"@adonisjs/eslint-config": "^1.1.8",
"@adonisjs/prettier-config": "^1.1.8",
Expand All @@ -50,27 +40,56 @@
"@commitlint/config-conventional": "^17.6.7",
"@japa/assert": "^2.0.0-1",
"@japa/expect-type": "^2.0.0-0",
"@japa/runner": "^3.0.0-2",
"@japa/runner": "^3.0.0-6",
"@swc/core": "^1.3.70",
"@types/node": "^20.4.2",
"benchmark": "^2.1.4",
"c8": "^8.0.0",
"c8": "^8.0.1",
"del-cli": "^5.0.0",
"eslint": "^8.45.0",
"github-label-sync": "^2.3.1",
"husky": "^8.0.3",
"np": "^8.0.4",
"prettier": "^3.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.3",
"tsup": "^7.1.0",
"typescript": "^5.1.6",
"yup": "^1.2.0",
"zod": "^3.21.4"
},
"dependencies": {
"@poppinss/macroable": "^1.0.0-7",
"@types/validator": "^13.7.17",
"@vinejs/compiler": "^2.2.0",
"camelcase": "^7.0.1",
"normalize-url": "^8.0.0",
"validator": "^13.9.0"
},
"author": "virk,vinejs",
"license": "MIT",
"homepage": "https://github.com/vinejs/vine#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/vinejs/vine.git"
},
"bugs": {
"url": "https://github.com/vinejs/vine/issues"
},
"keywords": [],
"types": "./build/index.d.ts",
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"publishConfig": {
"access": "public",
"tag": "latest"
},
"np": {
"message": "chore(release): %s",
"tag": "latest",
Expand All @@ -89,28 +108,20 @@
"benchmarks/**"
]
},
"dependencies": {
"@poppinss/macroable": "^1.0.0-6",
"@types/validator": "^13.7.17",
"@vinejs/compiler": "^2.1.2",
"camelcase": "^7.0.1",
"normalize-url": "^8.0.0",
"validator": "^13.9.0"
},
"types": "./build/index.d.ts",
"directories": {
"test": "tests"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vinejs/vine.git"
},
"bugs": {
"url": "https://github.com/vinejs/vine/issues"
},
"homepage": "https://github.com/vinejs/vine#readme",
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config"
"tsup": {
"entry": [
"./index.ts",
"./src/defaults.ts",
"./factories/main.ts",
"./src/types.ts"
],
"outDir": "./build",
"clean": true,
"format": "esm",
"dts": true,
"target": "esnext"
}
}

0 comments on commit 627ee41

Please sign in to comment.