Skip to content

Commit

Permalink
chore: improve script
Browse files Browse the repository at this point in the history
  • Loading branch information
starknt committed Nov 6, 2024
1 parent a3d1b0f commit d645398
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 70 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"stub": "unbuild --stub",
"build": "unbuild",
"prepublishOnly": "pnpm run build",
"release": "pnpm publish",
"release": "npx bumpp --no-push && pnpm publish",
"dev": "unbuild --stub",
"docs:dev": "pnpm -C docs run docs:dev",
"docs:build": "pnpm -C docs run docs:build",
Expand All @@ -51,9 +51,7 @@
"bench": "vitest bench",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"size": "pnpm run build && tsx --tsconfig=./tsconfig.tsx.json ./scripts/size.ts",
"g": "tsx --tsconfig=./tsconfig.tsx.json ./scripts/g-cmd.ts",
"test:memory:leak": "node --inspect ./scripts/m-test.mjs"
"size": "pnpm run build && tsx --tsconfig=./tsconfig.tsx.json ./scripts/size.ts"
},
"dependencies": {
"eventemitter3": "^5.0.1",
Expand All @@ -69,6 +67,7 @@
"bumpp": "^9.5.1",
"dotenv": "^16.4.5",
"eslint": "^9.9.0",
"gzip-size": "^7.0.0",
"pnpm": "^9.7.0",
"terser": "^5.31.6",
"tsx": "^4.17.0",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 0 additions & 42 deletions scripts/g-cmd.ts

This file was deleted.

23 changes: 0 additions & 23 deletions scripts/m-test.mjs

This file was deleted.

3 changes: 2 additions & 1 deletion scripts/size.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import path from 'node:path'
import fs from 'node:fs/promises'
import process from 'node:process'
import { sync as brotli } from 'brotli-size'
import { sync as gzip } from 'gzip-size'
import { gzipSizeSync as gzip } from 'gzip-size'
import { minify } from 'terser'
import { version } from '../package.json'

Expand Down

0 comments on commit d645398

Please sign in to comment.