diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 95da6b8bcb..24a1af2b38 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -99,23 +99,6 @@ https://github.com/endojs/endo/labels/next-release yarn build ``` -* Generate types. - - ```sh - yarn lerna run build:types - ``` - - We generate types from the bottom up before publishing because this allows - each package to rely on the generated types of its dependencies in the - workspace. - -* Commit the generated types. - - ```sh - git add . - git commit -m 'chore: Add generated types' - ``` - * Recreate the changelogs with the current date *and* generate tags for the new versions. This is the effect of removing the `--no-git-tag-version` flag. diff --git a/packages/base64/package.json b/packages/base64/package.json index 31fcfd9c98..367d2e3f9f 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -32,7 +32,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/bundle-source/package.json b/packages/bundle-source/package.json index 36437d1a45..34deb61b87 100644 --- a/packages/bundle-source/package.json +++ b/packages/bundle-source/package.json @@ -13,7 +13,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "test": "ava", "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", diff --git a/packages/captp/package.json b/packages/captp/package.json index ddc2d2e5ec..b78fd3cd1c 100644 --- a/packages/captp/package.json +++ b/packages/captp/package.json @@ -35,7 +35,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "test": "ava", "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", diff --git a/packages/check-bundle/package.json b/packages/check-bundle/package.json index 1971c4b9e3..748b6bb2ad 100644 --- a/packages/check-bundle/package.json +++ b/packages/check-bundle/package.json @@ -30,7 +30,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint": "yarn lint:types && yarn lint:eslint", "lint-fix": "eslint --fix .", diff --git a/packages/cjs-module-analyzer/package.json b/packages/cjs-module-analyzer/package.json index 549720a98b..c2a3e19c95 100644 --- a/packages/cjs-module-analyzer/package.json +++ b/packages/cjs-module-analyzer/package.json @@ -22,7 +22,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/cli/package.json b/packages/cli/package.json index f546676b82..f462909ef7 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -22,7 +22,7 @@ "exports": {}, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint": "yarn lint:types && yarn lint:eslint", "lint-fix": "eslint --fix .", diff --git a/packages/common/package.json b/packages/common/package.json index 7cfca1f3f2..1b721452a0 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -29,7 +29,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint": "yarn lint:types && yarn lint:eslint", "lint-check": "yarn lint", diff --git a/packages/compartment-mapper/package.json b/packages/compartment-mapper/package.json index e428036fb9..98aa8f1619 100644 --- a/packages/compartment-mapper/package.json +++ b/packages/compartment-mapper/package.json @@ -36,7 +36,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/daemon/package.json b/packages/daemon/package.json index 0b58e33382..268ab0b41f 100644 --- a/packages/daemon/package.json +++ b/packages/daemon/package.json @@ -33,7 +33,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/env-options/package.json b/packages/env-options/package.json index 7d85de7d6b..566ee330b6 100644 --- a/packages/env-options/package.json +++ b/packages/env-options/package.json @@ -29,7 +29,7 @@ "lint-fix": "eslint --fix .", "lint:eslint": "eslint .", "lint:types": "tsc", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "test": "exit 0" }, diff --git a/packages/errors/package.json b/packages/errors/package.json index 699c023803..d38810834f 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -29,7 +29,7 @@ "lint-fix": "yarn lint:eslint --fix && yarn lint:types", "lint:eslint": "eslint '**/*.js'", "lint:types": "tsc", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "test": "ava", "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", diff --git a/packages/evasive-transform/package.json b/packages/evasive-transform/package.json index 89c9447e71..6e0cb17ad8 100644 --- a/packages/evasive-transform/package.json +++ b/packages/evasive-transform/package.json @@ -29,7 +29,7 @@ "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", "test:xs": "exit 0", "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint-fix": "yarn lint:eslint --fix && yarn lint:types", "lint-check": "yarn lint", diff --git a/packages/eventual-send/package.json b/packages/eventual-send/package.json index 61dc831ba2..0b3575c638 100644 --- a/packages/eventual-send/package.json +++ b/packages/eventual-send/package.json @@ -10,7 +10,7 @@ "test:xs": "exit 0", "build": "exit 0", "clean": "git clean -f '*.d.ts*'", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint-fix": "yarn lint:eslint --fix && yarn lint:types", "lint-check": "yarn lint", diff --git a/packages/exo/package.json b/packages/exo/package.json index 3fd9a68f30..a11de0492f 100644 --- a/packages/exo/package.json +++ b/packages/exo/package.json @@ -24,7 +24,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint": "yarn lint:types && yarn lint:eslint", "lint-fix": "eslint --fix .", diff --git a/packages/far/package.json b/packages/far/package.json index 92153ba100..70325a3251 100644 --- a/packages/far/package.json +++ b/packages/far/package.json @@ -13,7 +13,7 @@ "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", "test:xs": "exit 0", "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint-fix": "yarn lint:eslint --fix && yarn lint:types", "lint-check": "yarn lint", diff --git a/packages/import-bundle/package.json b/packages/import-bundle/package.json index c5dde79622..66a93021ad 100644 --- a/packages/import-bundle/package.json +++ b/packages/import-bundle/package.json @@ -31,7 +31,7 @@ "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", "test:xs": "exit 0", "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint-fix": "eslint --fix '**/*.js'", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/init/package.json b/packages/init/package.json index e75c967af3..d004b8f79f 100644 --- a/packages/init/package.json +++ b/packages/init/package.json @@ -19,7 +19,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "test": "ava", "test:xs": "exit 0", diff --git a/packages/lp32/package.json b/packages/lp32/package.json index 277505f12b..6c403026c1 100644 --- a/packages/lp32/package.json +++ b/packages/lp32/package.json @@ -40,7 +40,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/marshal/package.json b/packages/marshal/package.json index f97bdc3014..483bf6e7af 100644 --- a/packages/marshal/package.json +++ b/packages/marshal/package.json @@ -13,7 +13,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "test": "ava", "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", diff --git a/packages/memoize/package.json b/packages/memoize/package.json index 57594187e5..fcde8420c4 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -29,7 +29,7 @@ "lint-fix": "eslint --fix .", "lint:eslint": "eslint .", "lint:types": "tsc", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "test": "ava" }, diff --git a/packages/nat/package.json b/packages/nat/package.json index 3c3806f595..9dc9959237 100644 --- a/packages/nat/package.json +++ b/packages/nat/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint": "yarn lint:types && yarn lint:eslint", "lint-fix": "eslint --fix .", diff --git a/packages/netstring/package.json b/packages/netstring/package.json index d1ccd8d9b8..87a17e6999 100644 --- a/packages/netstring/package.json +++ b/packages/netstring/package.json @@ -25,7 +25,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/pass-style/package.json b/packages/pass-style/package.json index ecbe79be77..b3579f84e5 100644 --- a/packages/pass-style/package.json +++ b/packages/pass-style/package.json @@ -25,7 +25,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint": "yarn lint:types && yarn lint:eslint", "lint-fix": "eslint --fix .", diff --git a/packages/patterns/package.json b/packages/patterns/package.json index eee30697ae..f109e1fb0e 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -23,7 +23,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint": "yarn lint:types && yarn lint:eslint", "lint-fix": "eslint --fix .", diff --git a/packages/promise-kit/package.json b/packages/promise-kit/package.json index 37297ce838..e477e872a2 100644 --- a/packages/promise-kit/package.json +++ b/packages/promise-kit/package.json @@ -26,7 +26,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/ses-ava/package.json b/packages/ses-ava/package.json index 0119fd36db..e4c0f91d91 100644 --- a/packages/ses-ava/package.json +++ b/packages/ses-ava/package.json @@ -27,7 +27,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/skel/package.json b/packages/skel/package.json index 65b2715c5d..7d3525258a 100644 --- a/packages/skel/package.json +++ b/packages/skel/package.json @@ -27,7 +27,7 @@ "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", "test:xs": "exit 0", "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "lint-fix": "yarn lint:eslint --fix && yarn lint:types", "lint-check": "yarn lint", diff --git a/packages/static-module-record/package.json b/packages/static-module-record/package.json index 0b624ea498..6346b967f0 100644 --- a/packages/static-module-record/package.json +++ b/packages/static-module-record/package.json @@ -27,7 +27,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/stream-node/package.json b/packages/stream-node/package.json index b2753616cc..9ac45483c4 100644 --- a/packages/stream-node/package.json +++ b/packages/stream-node/package.json @@ -31,7 +31,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/stream/package.json b/packages/stream/package.json index faa5112ae2..a0c2e1be5d 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -34,7 +34,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/syrup/package.json b/packages/syrup/package.json index 072fdc47c7..a34d49835c 100644 --- a/packages/syrup/package.json +++ b/packages/syrup/package.json @@ -29,7 +29,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/where/package.json b/packages/where/package.json index 336090a70b..7ed748ae69 100644 --- a/packages/where/package.json +++ b/packages/where/package.json @@ -27,7 +27,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint", diff --git a/packages/zip/package.json b/packages/zip/package.json index 51cf835131..74a1eb371a 100644 --- a/packages/zip/package.json +++ b/packages/zip/package.json @@ -28,7 +28,7 @@ }, "scripts": { "build": "exit 0", - "build:types": "tsc --build tsconfig.build.json", + "prepack": "tsc --build tsconfig.build.json", "clean:types": "git clean -f '*.d.ts*'", "cover": "c8 ava", "lint": "yarn lint:types && yarn lint:eslint",