@diagonal-hq/pages 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ The package must not depend on `@diagonal-hq/workflows` or `@diagonal-hq/cli`. I
|
|
|
38
38
|
|
|
39
39
|
## Build the package
|
|
40
40
|
|
|
41
|
-
`npm run build:pages-package` (`scripts/build-pages-package.mjs`) writes `dist/index.d.ts` and `dist/index.js` from the generated Page SDK contract and the export table, and packs `scripts/dist/npm/diagonal-hq-pages-<version>.tgz`. TypeScript checks the declarations, and a type error fails the build. `npm run generate-typescript` runs the script after `generate-page-sdk-types`.
|
|
41
|
+
`npm run build:pages-package` (`scripts/build-pages-package.mjs`) writes `dist/index.d.ts` and `dist/index.js` from the generated Page SDK contract and the export table, and packs `scripts/dist/npm/diagonal-hq-pages-<version>.tgz`. TypeScript checks the declarations, and a type error fails the build. `npm run generate-typescript` runs the script with `--declarations-only` after `generate-page-sdk-types`. That mode writes only `dist/index.d.ts`, which the Files editor and the draft editors bundle. It does not write `dist/index.js` or the tarball. `npm run build:npm-packages` builds and packs all the packages.
|
|
42
42
|
|
|
43
43
|
`node scripts/smoke-pages-package.mjs [tarball]` installs the packed tarball in a consumer outside the repository, with the React, React DOM, and Inertia versions of the platform. It checks the packed file list, the peer dependencies, the package boundaries of the packed manifest and of the installed dependency tree, the error that the package root throws, the `exports` map, and a `tsc` check of a `.tsx` file that imports and renders named exports with `@types/react`. The `tsc` check also loads a `generated/catalog.d.ts` and checks that `SdkInternal` is not an export. `node scripts/check-runtime-templates.mjs` runs `diagonal check` and `tsc` on each workspace template with the packed packages. The `generated-assets` job of PR CI runs both.
|
|
44
44
|
|