Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions infrastructure/w3id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,40 @@
"name": "w3id",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "tsc --watch",
"check-format": "prettier --check \"src/**/*.ts\"",
"format": "npx @biomejs/biome format --write ./src",
"lint": "npx @biomejs/biome lint --write ./src",
"check": "npx @biomejs/biome check --write ./src",
"check-types": "tsc --noEmit",
"build": "npm run build:node && npm run build:browser",
"build:node": "tsc -p tsconfig.node.json",
"build:browser": "tsc -p tsconfig.browser.json",
"postinstall": "npm run build"
},
"keywords": [],
"author": "",
"license": "ISC"
"license": "ISC",
"dependencies": {
"uuid": "^11.1.0"
},
"devDependencies": {
"typescript": "^5.8.2"
},
"main": "./dist/node/index.js",
"module": "./dist/browser/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/node/index.js",
"import": "./dist/browser/index.js",
"types": "./dist/types/index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"dist/**/*"
]
}
1 change: 1 addition & 0 deletions infrastructure/w3id/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("hi");
8 changes: 8 additions & 0 deletions infrastructure/w3id/tsconfig.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"outDir": "./dist/browser",
"lib": ["DOM", "ESNext"]
}
}
18 changes: 18 additions & 0 deletions infrastructure/w3id/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ES2017",
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"declaration": true,
"declarationDir": "./dist/types",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "Node",
"skipLibCheck": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
8 changes: 8 additions & 0 deletions infrastructure/w3id/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"outDir": "./dist/node",
"lib": ["ESNext"]
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"format": "pnpm -F=* format",
"check-types": "turbo run check-types"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"prettier": "^3.5.3",
"turbo": "^2.4.4",
"typescript": "5.8.2"
Expand Down
108 changes: 108 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages:
- "apps/*"
- "packages/*"
- "infrastructure/*"