diff --git a/packages/turbo-gen/package.json b/packages/turbo-gen/package.json index e89f4c577fdd6..5addf6cd2299c 100644 --- a/packages/turbo-gen/package.json +++ b/packages/turbo-gen/package.json @@ -2,11 +2,12 @@ "name": "@turbo/gen", "version": "2.5.7-canary.0", "description": "Extend a Turborepo", + "type": "commonjs", "homepage": "https://turborepo.com", "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/vercel/turborepo", + "url": "git+https://github.com/vercel/turborepo.git", "directory": "packages/turbo-gen" }, "bugs": { @@ -18,7 +19,9 @@ "build": "tsup", "test": "jest", "lint": "eslint src/", - "check-types": "tsc --noEmit" + "check-types": "tsc --noEmit", + "package:lint": "publint --strict", + "package:types": "attw --profile node16 --pack" }, "dependencies": { "@turbo/workspaces": "workspace:*", @@ -34,6 +37,7 @@ "validate-npm-package-name": "^5.0.0" }, "devDependencies": { + "@arethetypeswrong/cli": "^0.18.2", "@jest/globals": "^29.7.0", "@turbo/eslint-config": "workspace:*", "@turbo/test-utils": "workspace:*", @@ -43,6 +47,7 @@ "@types/inquirer": "^8.2.5", "@types/node": "^18.17.2", "@types/validate-npm-package-name": "^4.0.0", + "publint": "^0.3.12", "jest": "^29.7.0", "ts-jest": "^29.2.5", "tsup": "^6.7.0", diff --git a/packages/turbo-types/package.json b/packages/turbo-types/package.json index 22678edec9391..3a4171b491b72 100644 --- a/packages/turbo-types/package.json +++ b/packages/turbo-types/package.json @@ -2,11 +2,12 @@ "name": "@turbo/types", "version": "2.5.7-canary.0", "description": "Turborepo types", + "type": "commonjs", "homepage": "https://turborepo.com", "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/vercel/turborepo", + "url": "git+https://github.com/vercel/turborepo.git", "directory": "packages/turbo-types" }, "bugs": { @@ -19,12 +20,16 @@ "lint": "eslint src/", "lint:prettier": "prettier -c . --cache", "generate-schema": "tsx scripts/generate-schema.ts", - "copy-schema": "cp schemas/schema.json ../turbo/schema.json" + "copy-schema": "cp schemas/schema.json ../turbo/schema.json", + "package:lint": "publint --strict", + "package:types": "attw --profile node16 --pack" }, "devDependencies": { + "@arethetypeswrong/cli": "^0.18.2", "@turbo/eslint-config": "workspace:*", "@turbo/tsconfig": "workspace:*", "@types/node": "^20", + "publint": "^0.3.12", "ts-json-schema-generator": "2.3.0", "tsx": "4.19.1" }, diff --git a/packages/turbo-utils/package.json b/packages/turbo-utils/package.json index c93309df0d334..6b7245be45d72 100644 --- a/packages/turbo-utils/package.json +++ b/packages/turbo-utils/package.json @@ -2,14 +2,18 @@ "name": "@turbo/utils", "version": "0.0.0", "private": true, + "type": "commonjs", "description": "", "homepage": "https://turborepo.com", "keywords": [], "author": "Vercel", "license": "MIT", + "files": [ + "src" + ], "repository": { "type": "git", - "url": "https://github.com/vercel/turborepo", + "url": "git+https://github.com/vercel/turborepo.git", "directory": "packages/turbo-utils" }, "bugs": { @@ -22,9 +26,12 @@ "test": "jest", "lint": "eslint src/", "check-types": "tsc --noEmit", - "lint:prettier": "prettier -c . --cache --ignore-path=../../.prettierignore" + "lint:prettier": "prettier -c . --cache --ignore-path=../../.prettierignore", + "package:lint": "publint --strict", + "package:types": "attw --profile node16 --pack" }, "devDependencies": { + "@arethetypeswrong/cli": "^0.18.2", "@jest/globals": "^29.7.0", "@manypkg/find-root": "^1.1.0", "@turbo/eslint-config": "workspace:*", @@ -48,6 +55,7 @@ "json5": "^2.2.3", "ora": "4.1.1", "picocolors": "1.0.1", + "publint": "^0.3.12", "tar": "6.1.13", "ts-jest": "^29.2.5", "typescript": "5.5.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 73d297d2bd561..106144d1aaa08 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -671,6 +671,9 @@ importers: specifier: ^5.0.0 version: 5.0.0 devDependencies: + '@arethetypeswrong/cli': + specifier: ^0.18.2 + version: 0.18.2 '@jest/globals': specifier: ^29.7.0 version: 29.7.0 @@ -701,6 +704,9 @@ importers: jest: specifier: ^29.7.0 version: 29.7.0(@types/node@18.17.4)(ts-node@10.9.2) + publint: + specifier: ^0.3.12 + version: 0.3.12 ts-jest: specifier: ^29.2.5 version: 29.2.5(@babel/core@7.26.10)(esbuild@0.17.18)(jest@29.7.0)(typescript@5.5.4) @@ -890,13 +896,16 @@ importers: version: 29.7.0 ts-jest: specifier: ^29.2.5 - version: 29.2.5(@babel/core@7.26.10)(esbuild@0.14.49)(jest@29.7.0)(typescript@5.5.4) + version: 29.2.5(@babel/core@7.26.10)(jest@29.7.0)(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 packages/turbo-types: devDependencies: + '@arethetypeswrong/cli': + specifier: ^0.18.2 + version: 0.18.2 '@turbo/eslint-config': specifier: workspace:* version: link:../eslint-config @@ -906,6 +915,9 @@ importers: '@types/node': specifier: ^20 version: 20.11.30 + publint: + specifier: ^0.3.12 + version: 0.3.12 ts-json-schema-generator: specifier: 2.3.0 version: 2.3.0 @@ -915,6 +927,9 @@ importers: packages/turbo-utils: devDependencies: + '@arethetypeswrong/cli': + specifier: ^0.18.2 + version: 0.18.2 '@jest/globals': specifier: ^29.7.0 version: 29.7.0 @@ -984,12 +999,15 @@ importers: picocolors: specifier: 1.0.1 version: 1.0.1 + publint: + specifier: ^0.3.12 + version: 0.3.12 tar: specifier: 6.1.13 version: 6.1.13 ts-jest: specifier: ^29.2.5 - version: 29.2.5(@babel/core@7.26.10)(esbuild@0.14.49)(jest@29.7.0)(typescript@5.5.4) + version: 29.2.5(@babel/core@7.26.10)(jest@29.7.0)(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -12490,7 +12508,7 @@ packages: resolution: {integrity: sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==} engines: {node: '>=12'} dependencies: - chalk: 5.3.0 + chalk: 5.6.0 is-unicode-supported: 1.3.0 dev: true @@ -12498,7 +12516,7 @@ packages: resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==} engines: {node: '>=18'} dependencies: - chalk: 5.3.0 + chalk: 5.6.0 is-unicode-supported: 1.3.0 dev: true @@ -16987,6 +17005,44 @@ packages: yargs-parser: 21.1.1 dev: true + /ts-jest@29.2.5(@babel/core@7.26.10)(jest@29.7.0)(typescript@5.5.4): + resolution: {integrity: sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA==} + engines: {node: ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@babel/core': '>=7.0.0-beta.0 <8' + '@jest/transform': ^29.0.0 + '@jest/types': ^29.0.0 + babel-jest: ^29.0.0 + esbuild: '*' + jest: ^29.0.0 + typescript: '>=4.3 <6' + peerDependenciesMeta: + '@babel/core': + optional: true + '@jest/transform': + optional: true + '@jest/types': + optional: true + babel-jest: + optional: true + esbuild: + optional: true + dependencies: + '@babel/core': 7.26.10 + bs-logger: 0.2.6 + ejs: 3.1.10 + fast-json-stable-stringify: 2.1.0 + jest: 29.7.0(@types/node@20.5.7) + jest-util: 29.7.0 + json5: 2.2.3 + lodash.memoize: 4.1.2 + make-error: 1.3.6 + semver: 7.6.3 + typescript: 5.5.4 + yargs-parser: 21.1.1 + dev: true + /ts-json-schema-generator@2.3.0: resolution: {integrity: sha512-t4lBQAwZc0sOJq9LJt3NgbznIcslVnm0JeEMFq8qIRklpMRY8jlYD0YmnRWbqBKANxkby91P1XanSSlSOFpUmg==} engines: {node: '>=18.0.0'}