Skip to content

Commit 331c3ee

Browse files
chore(runtime): add package.json and tsconfig with zero runtime dependencies
- Configure rawscript package as ESM with zero dependencies - Enforce empty dependencies field (core project invariant) - Add esbuild and typescript as devDependencies only - Extend base tsconfig with DOM and WebWorker lib support
1 parent 18a5ffb commit 331c3ee

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

packages/runtime/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "rawscript",
3+
"version": "0.1.0",
4+
"description": "TypeScript in the browser. Zero install. Zero config. Zero dependencies.",
5+
"type": "module",
6+
"main": "dist/rawscript.js",
7+
"files": ["dist/"],
8+
"dependencies": {},
9+
"devDependencies": {
10+
"esbuild": "^0.20.2",
11+
"typescript": "^5.4.0"
12+
},
13+
"scripts": {
14+
"build": "node build.js",
15+
"typecheck": "tsc --noEmit"
16+
}
17+
}

packages/runtime/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"rootDir": "./src",
6+
"lib": ["ES2022", "DOM", "WebWorker"],
7+
"types": []
8+
},
9+
"include": ["src/**/*"]
10+
}

0 commit comments

Comments
 (0)