From 5f85d09e2998e3a279ccb1d33da1c8d5be429fd4 Mon Sep 17 00:00:00 2001 From: Julien Date: Sat, 15 Jul 2023 22:17:12 +0200 Subject: [PATCH] chore: cleanup pkg json --- package.json | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 59cf777..c5ed717 100644 --- a/package.json +++ b/package.json @@ -5,25 +5,16 @@ "main": "build/index.js", "type": "module", "files": [ - "index.ts", - "configure.ts", - "src", - "services", - "providers", - "factories", "build/configure.js", "build/configure.d.ts", - "build/configure.d.ts.map", "build/index.js", "build/index.d.ts", - "build/index.d.ts.map", "build/src", "build/services", "build/providers", "build/factories", "build/stubs", "build/index.d.ts", - "build/index.d.ts.map", "build/index.js" ], "exports": { @@ -34,18 +25,18 @@ }, "scripts": { "pretest": "npm run lint", - "test": "docker-compose build && docker-compose run --rm tests", - "quick:test": "node --experimental-import-meta-resolve --enable-source-maps --loader=ts-node/esm ./bin/test.ts", + "test": "c8 npm run quick:test", + "quick:test": "node --enable-source-maps --loader=ts-node/esm ./bin/test.ts", "clean": "del-cli build", "test:docker": "FORCE_COLOR=true node --loader=ts-node/esm ./bin/test.ts", - "copyfiles": "copyfiles \"templates/**/*.txt\" \"instructions.md\" build", - "compile": "npm run lint && npm run clean && tsc", - "build": "npm run compile && npm run copyfiles", + "copy:templates": "copyfiles \"stubs/**/**/*.stub\" build", + "compile": "npm run lint && npm run clean && tsc && npm run copy:templates", + "build": "npm run compile", "release": "np --message=\"chore(release): %s\"", "version": "npm run build", "prepublishOnly": "npm run build", "lint": "eslint . --ext=.ts", - "sync-labels": "github-label-sync --labels .github/labels.json adonisjs/logger" + "sync-labels": "github-label-sync --labels .github/labels.json adonisjs/redis" }, "devDependencies": { "@adonisjs/core": "^6.1.5-8", @@ -56,7 +47,7 @@ "@japa/expect-type": "2.0.0-0", "@japa/file-system": "2.0.0-1", "@japa/runner": "3.0.0-6", - "@swc/core": "^1.3.64", + "@swc/core": "^1.3.69", "@types/node": "^20.4.2", "copyfiles": "^2.4.1", "del-cli": "^5.0.0",