@plasius/schema 1.2.1 → 1.2.3
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 +19 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +22 -9
package/README.md
CHANGED
|
@@ -20,6 +20,25 @@ Apache-2.0. ESM + CJS builds. TypeScript types included.
|
|
|
20
20
|
npm install @plasius/schema
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
## Packaging policy (template baseline)
|
|
24
|
+
|
|
25
|
+
`@plasius/schema` is the baseline template for new `@plasius/*` packages.
|
|
26
|
+
Dual-module packages should prefer `.cjs` outputs for CommonJS. If a package
|
|
27
|
+
uses `dist-cjs/*.js` with `type: module`, it must generate
|
|
28
|
+
`dist-cjs/package.json` with `{ "type": "commonjs" }` and validate this in
|
|
29
|
+
`pack:check` before publish.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Demo
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm run build
|
|
37
|
+
node demo/example.mjs
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
See `demo/README.md` for the local sanity-check scaffold.
|
|
41
|
+
|
|
23
42
|
---
|
|
24
43
|
|
|
25
44
|
## Node.js Version
|