feat!: migrate to TypeScript and implement emulate using Miniflare
Signed-off-by: Pascal Vorwerk <info@fossores.de>
This commit is contained in:
51
package.json
Normal file
51
package.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "@fossoreslp/sveltekit-adapter-cloudflare",
|
||||
"version": "5.0.0",
|
||||
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.vorwerk.dev/fossoreslp/sveltekit-adapter-cloudflare.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://kit.svelte.dev",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./index.ts",
|
||||
"import": "./index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"types": "index.ts",
|
||||
"files": [
|
||||
"files",
|
||||
"index.js"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "npm run build:worker && npm run build:adapter",
|
||||
"build:adapter": "esbuild index.ts --outfile=index.js --format=esm",
|
||||
"build:worker": "esbuild src/worker.ts --bundle --outfile=files/worker.js --external:SERVER --external:MANIFEST --format=esm",
|
||||
"lint": "prettier --check .",
|
||||
"format": "npm lint --write",
|
||||
"check": "tsc --skipLibCheck",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudflare/workers-types": "^4.20231121.0",
|
||||
"esbuild": "^0.19.11",
|
||||
"miniflare": "^3.20231218.4",
|
||||
"worktop": "0.8.0-next.18"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/kit": "^2.0.0",
|
||||
"@types/node": "^18.19.3",
|
||||
"@types/ws": "^8.5.10",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@sveltejs/kit": "^2.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user