npm workspaces (packages/*, apps/*) with shared TypeScript, ESLint and
Jest setup and `npm run check`. @crosscode/contracts builds to CommonJS
and ESM (tsup) with the crosscode.<name>/<major> schema-name helpers.
packages/ui and apps/{accounts,website,app} are placeholders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"name": "@crosscode/contracts",
|
|
"version": "0.1.0",
|
|
"description": "The shared JSON formats used by every Cross Code product: zod schemas, JSON Schema, TypeScript types and sample payloads",
|
|
"license": "UNLICENSED",
|
|
"type": "commonjs",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"schemas",
|
|
"samples",
|
|
"README.md"
|
|
],
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"zod": "^4.6.7"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://c-git.crosscode.co.za/api/packages/joshua/npm/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://c-git.crosscode.co.za/joshua/crosscode-platform.git",
|
|
"directory": "packages/contracts"
|
|
}
|
|
}
|