update scripts

This commit is contained in:
Bryan 2024-06-08 13:32:52 +08:00
parent fb734db25e
commit b7e0c915ed
No known key found for this signature in database
GPG Key ID: 4EC3FD10E03041D7

View File

@ -4,12 +4,9 @@
"description": "Cloudflare worker TypeScript template", "description": "Cloudflare worker TypeScript template",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"dev": "NODE_ENV=development npm run build", "dev": "npx wrangler dev",
"build": "webpack", "deploy": "npx wrangler deploy",
"format": "prettier --write '**/*.{ts,js,css,json,md}'", "format": "prettier --write '**/*.{ts,js,css,json,md}'"
"test:clean": "rimraf ./transpiled/src ./transpiled/test",
"test": "npm run test:clean && npm run transpile && mocha --require source-map-support/register --recursive transpiled/test",
"transpile": "tsc --project ./test"
}, },
"author": "author", "author": "author",
"license": "MIT OR Apache-2.0", "license": "MIT OR Apache-2.0",