@itsaorg/ts-blueprint 1.0.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - b88511a: Initial release of the Itsa TypeScript library blueprint and GitHub template (P0 / R0).
8
+
9
+ All notable changes to this project are documented in this file.
10
+
11
+ This project follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
12
+ Entries are generated automatically by [Changesets](https://github.com/changesets/changesets)
13
+ when the Version PR runs `changeset version` โ€” do not hand-edit release sections.
14
+
15
+ ## Unreleased
16
+
17
+ _No unreleased changes yet._
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,317 @@
1
+ # ๐Ÿ“ฆ @itsaorg/ts-blueprint
2
+
3
+ Frozen TypeScript library toolchain and GitHub template for all Itsa platform repositories (R0). Downstream repos substitute metadata tokens only โ€” no ESLint, TypeScript, Vitest, Husky, or CI reconfiguration.
4
+
5
+ ---
6
+
7
+ ## ๐Ÿ“‘ Table of Contents
8
+
9
+ - [๐Ÿ“ฆ @itsaorg/ts-blueprint](#-itsaorgts-blueprint)
10
+ - [๐Ÿ“‘ Table of Contents](#-table-of-contents)
11
+ - [๐ŸŽฏ Purpose](#-purpose)
12
+ - [๐Ÿ“ Repository layout](#-repository-layout)
13
+ - [๐Ÿ—‚๏ธ Why template/ exists](#๏ธ-why-template-exists)
14
+ - [๐Ÿ“‹ Prerequisites](#-prerequisites)
15
+ - [๐Ÿš€ Quick start (Human Step 0 โ€” downstream repos)](#-quick-start-human-step-0--downstream-repos)
16
+ - [๐ŸŒฟ Git Flow cheat sheet](#-git-flow-cheat-sheet)
17
+ - [๐Ÿ“œ npm scripts reference](#-npm-scripts-reference)
18
+ - [๐Ÿช Husky hooks](#-husky-hooks)
19
+ - [๐Ÿงฉ Variants](#-variants)
20
+ - [๐Ÿ“ฆ Changesets summary](#-changesets-summary)
21
+ - [๐Ÿ““ Changelog](#-changelog)
22
+ - [๐Ÿ“„ License](#-license)
23
+
24
+ ---
25
+
26
+ ## ๐ŸŽฏ Purpose
27
+
28
+ - **Configure once** in R0
29
+ - **Copy via GitHub template** for R1โ€“R32 and A1
30
+ - **Substitute** template placeholders with repo metadata
31
+ - **Verify** with `npm install && npm run check`
32
+
33
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for the full contribution SOP and [MVP.md](../MVP.md) for the platform catalog.
34
+
35
+ ## ๐Ÿ“ Repository layout
36
+
37
+ ```text
38
+ itsa-ts-blueprint/
39
+ โ”œโ”€โ”€ config/ # Toolchain configs (ESLint, TS, Vitest, Prettier, TypeDoc)
40
+ โ”œโ”€โ”€ src/ # Library source
41
+ โ”œโ”€โ”€ tests/ # Unit, integration, consumer tests
42
+ โ”œโ”€โ”€ scripts/ # Validation and scaffold scripts
43
+ โ”œโ”€โ”€ template/ # Portable downstream mirror (__TOKEN__ placeholders)
44
+ โ”œโ”€โ”€ docs/variants/ # Next / Electron / Expo overlay notes
45
+ โ”œโ”€โ”€ .github/ # CI, issue/PR templates
46
+ โ”œโ”€โ”€ .husky/ # Git hooks
47
+ โ”œโ”€โ”€ .changeset/ # Changesets release management
48
+ โ”œโ”€โ”€ tsconfig.json # Stub โ†’ extends config/tsconfig.json
49
+ โ”œโ”€โ”€ CHANGELOG.md # Auto-updated by Changesets
50
+ โ”œโ”€โ”€ .npmignore # Publish guard (defense in depth)
51
+ โ””โ”€โ”€ package.json # npm scripts and metadata
52
+ ```
53
+
54
+ Tooling configs live in `config/` so the repo root stays focused on source, docs, and human-facing files.
55
+
56
+ ## ๐Ÿ—‚๏ธ Why template/ exists
57
+
58
+ This repo is a **GitHub Template repository** โ€” but it also keeps a `template/` subdirectory. They serve different roles:
59
+
60
+ | Mechanism | What it does | What it does not do |
61
+ | ---------------------------- | ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------- |
62
+ | **GitHub Template** | Copies the entire default branch when you click "Use this template" or run `gh repo create --template` | Token substitution, strip R0-only files, or validate the result |
63
+ | **`template/` subdirectory** | Holds the portable downstream layout with `__REPO_NAME__`, `__PACKAGE_NAME__`, etc. | Replace GitHub's repo-creation UX |
64
+
65
+ **Why keep `template/`:**
66
+
67
+ 1. **Token substitution** โ€” [`scripts/substitute-names.mjs`](scripts/substitute-names.mjs) copies `template/` to a target directory and replaces eight approved tokens.
68
+ 2. **R0-only separation** โ€” Root keeps R0-only scripts (`smoke:scaffold`, nested `template/`). The `template/` mirror is what R1+ repos should look like.
69
+ 3. **Offline P0 gate** โ€” [`scripts/smoke-scaffold.mjs`](scripts/smoke-scaffold.mjs) validates end-to-end without calling GitHub.
70
+ 4. **Future-proofing** โ€” Bootstrap R1โ€“R32 locally or in CI even if GitHub template is unavailable.
71
+
72
+ **Known gap:** `gh repo create --template` copies the R0 root as-is (including R0-only paths). Downstream Human Step 0 may still need in-place token substitution. The `template/` folder is the **canonical portable snapshot**.
73
+
74
+ ## ๐Ÿ“‹ Prerequisites
75
+
76
+ | Requirement | Verify |
77
+ | ------------------------- | --------------------------------------- |
78
+ | Node.js 22.12 LTS or 24.x | `node -v` (CI runs 22.12.0 and 24.21.0) |
79
+ | npm | `npm -v` |
80
+ | GitHub CLI | `gh auth status` |
81
+ | git-flow (AVH) | `git flow version` |
82
+ | npm org access (publish) | `npm whoami` |
83
+
84
+ Node **22.12.0+** satisfies `engines`; **24.x** is supported locally without nvm. Optional version managers:
85
+
86
+ ```bash
87
+ fnm use # reads .nvmrc (24.21.0)
88
+ # or: volta install node@22.12.0 / node@24.21.0
89
+ ```
90
+
91
+ ## ๐Ÿš€ Quick start (Human Step 0 โ€” downstream repos)
92
+
93
+ Create a new library repo from this template:
94
+
95
+ ```bash
96
+ gh repo create itsaorg/itsa-example --template itsaorg/itsa-ts-blueprint --private=false
97
+ git clone git@github.com:itsaorg/itsa-example.git udawg-game-bot-refactor/itsa-example
98
+ cd udawg-game-bot-refactor/itsa-example
99
+ git flow init -d
100
+ git checkout develop
101
+ ```
102
+
103
+ Substitute tokens (if not done by template variables):
104
+
105
+ ```bash
106
+ node scripts/substitute-names.mjs \
107
+ --repo itsa-example \
108
+ --package @itsaorg/example \
109
+ --description "Example Itsa library" \
110
+ --repo-id R99 \
111
+ --phase P1 \
112
+ --out .
113
+ ```
114
+
115
+ Install and verify:
116
+
117
+ ```bash
118
+ npm install
119
+ npm run check
120
+ ```
121
+
122
+ ## ๐ŸŒฟ Git Flow cheat sheet
123
+
124
+ | Branch type | Start | Finish |
125
+ | ----------- | --------------------------------------- | ---------------------------------------- |
126
+ | Feature | `git flow feature start <issue>-<slug>` | `git flow feature finish <issue>-<slug>` |
127
+ | Bugfix | `git flow bugfix start <issue>-<slug>` | `git flow bugfix finish <issue>-<slug>` |
128
+ | Release | `git flow release start <version>` | `git flow release finish <version>` |
129
+ | Hotfix | `git flow hotfix start <version>` | `git flow hotfix finish <version>` |
130
+ | Support | `git flow support start <name> <base>` | `git flow support finish <name>` |
131
+
132
+ Long-lived branches: `main` (production), `develop` (integration).
133
+
134
+ ## ๐Ÿ“œ npm scripts reference
135
+
136
+ Every script below is inherited unchanged by scaffolded repos (except R0-only scripts noted). Toolchain configs live in `config/`.
137
+
138
+ ### `build`
139
+
140
+ Compile ESM to `dist/` and declarations to `types/`.
141
+
142
+ ```bash
143
+ npm run build
144
+ ```
145
+
146
+ ### `clean`
147
+
148
+ Remove build, coverage, and generated docs artifacts.
149
+
150
+ ```bash
151
+ npm run clean
152
+ ```
153
+
154
+ ### `typecheck`
155
+
156
+ TypeScript check without emit.
157
+
158
+ ```bash
159
+ npm run typecheck
160
+ ```
161
+
162
+ ### `lint` / `lint:fix`
163
+
164
+ Type-aware ESLint (`config/eslint.config.js`).
165
+
166
+ ```bash
167
+ npm run lint
168
+ npm run lint:fix
169
+ ```
170
+
171
+ ### `format` / `format:check`
172
+
173
+ Prettier write or check (`config/.prettierrc.json`).
174
+
175
+ ```bash
176
+ npm run format
177
+ npm run format:check
178
+ ```
179
+
180
+ ### `test` / `test:watch` / `test:coverage`
181
+
182
+ Vitest unit and integration suites (`config/vitest.config.ts`). Coverage enforces 80% thresholds.
183
+
184
+ ```bash
185
+ npm run test
186
+ npm run test:watch
187
+ npm run test:coverage
188
+ ```
189
+
190
+ ### `test:consumer`
191
+
192
+ ESM consumer import test (`config/vitest.consumer.config.ts`).
193
+
194
+ ```bash
195
+ npm run build
196
+ npm run test:consumer
197
+ ```
198
+
199
+ ### `docs`
200
+
201
+ Generate API documentation to `docs/api/` (`config/typedoc.json`, gitignored).
202
+
203
+ ```bash
204
+ npm run docs
205
+ ```
206
+
207
+ ### `check:layout`
208
+
209
+ Enforce one principal export per source file.
210
+
211
+ ```bash
212
+ npm run check:layout
213
+ ```
214
+
215
+ ### `check:types-mirror`
216
+
217
+ Verify `types/` declarations exist and match public API after build.
218
+
219
+ ```bash
220
+ npm run build
221
+ npm run check:types-mirror
222
+ ```
223
+
224
+ ### `check:tarball`
225
+
226
+ Pack and inspect npm tarball; reject tests/scripts/config/.github in published files.
227
+
228
+ ```bash
229
+ npm run check:tarball
230
+ ```
231
+
232
+ ### `check`
233
+
234
+ Full local/CI gate (matches Husky `pre-push`).
235
+
236
+ ```bash
237
+ npm run check
238
+ ```
239
+
240
+ ### `prepare`
241
+
242
+ Install Husky hooks (runs automatically on `npm install`).
243
+
244
+ ```bash
245
+ npm run prepare
246
+ ```
247
+
248
+ ### `prepublishOnly`
249
+
250
+ Runs `npm run check` before publish.
251
+
252
+ ```bash
253
+ npm publish --dry-run
254
+ ```
255
+
256
+ ### Changesets
257
+
258
+ ```bash
259
+ npm run changeset
260
+ npm run changeset:version
261
+ npm run changeset:publish
262
+ ```
263
+
264
+ ### R0-only: `smoke:scaffold`
265
+
266
+ End-to-end template validation in a temp directory.
267
+
268
+ ```bash
269
+ npm run smoke:scaffold
270
+ ```
271
+
272
+ ### R0-only: token substitution
273
+
274
+ ```bash
275
+ node scripts/substitute-names.mjs \
276
+ --repo itsa-dbms-base \
277
+ --package @itsaorg/dbms-base \
278
+ --description "Itsa DBMS base contracts" \
279
+ --repo-id R1 \
280
+ --phase P1 \
281
+ --out /tmp/itsa-r1-scaffold
282
+ ```
283
+
284
+ ## ๐Ÿช Husky hooks
285
+
286
+ | Hook | Runs |
287
+ | ------------ | --------------------------------- |
288
+ | `pre-commit` | lint-staged (ESLint + Prettier) |
289
+ | `commit-msg` | Commitlint (Conventional Commits) |
290
+ | `pre-push` | `npm run check` |
291
+
292
+ Details: [CONTRIBUTING.md ยง Husky hooks](CONTRIBUTING.md#10-husky-hooks-and-git-flow-coexistence).
293
+
294
+ ## ๐Ÿงฉ Variants
295
+
296
+ Non-library repos (Next.js, Electron, Expo) add overlays documented in [docs/variants/](docs/variants/). Variant configs extend files in `config/` โ€” do not fork the toolchain. The library variant requires zero extra config beyond token substitution.
297
+
298
+ ## ๐Ÿ“ฆ Changesets summary
299
+
300
+ 1. `npx changeset` after meaningful package changes
301
+ 2. Merge Version PR on `develop` (updates `CHANGELOG.md` automatically)
302
+ 3. `git flow release` to `main`
303
+ 4. CI publishes with npm provenance
304
+
305
+ ## ๐Ÿ““ Changelog
306
+
307
+ Release history lives in [CHANGELOG.md](CHANGELOG.md) (published to npm).
308
+
309
+ - **Contributors:** add a `.changeset/*.md` file via `npx changeset` โ€” do not hand-edit release sections.
310
+ - **Version PR:** the Changesets GitHub Action runs `changeset version`, which prepends the new version to `CHANGELOG.md`.
311
+ - **Format:** [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
312
+
313
+ See [CONTRIBUTING.md ยง 7](CONTRIBUTING.md#7-changesets-changelog-and-release-flow) for the full SOP.
314
+
315
+ ## ๐Ÿ“„ License
316
+
317
+ Apache-2.0 โ€” see [LICENSE](LICENSE).
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export function getBlueprintHealth() {
2
+ return {
3
+ status: 'ok',
4
+ package: '@itsaorg/ts-blueprint',
5
+ };
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,uBAAuB;KACjC,CAAC;AACJ,CAAC"}
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@itsaorg/ts-blueprint",
3
+ "version": "1.0.0",
4
+ "description": "Itsa TypeScript library blueprint and GitHub template for all platform repositories",
5
+ "type": "module",
6
+ "license": "Apache-2.0",
7
+ "engines": {
8
+ "node": ">=22.12.0"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./types/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "types",
19
+ "LICENSE",
20
+ "README.md",
21
+ "CHANGELOG.md"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.json",
25
+ "clean": "node scripts/clean.mjs",
26
+ "typecheck": "tsc --noEmit -p tsconfig.json",
27
+ "lint": "eslint . --config config/eslint.config.js",
28
+ "lint:fix": "eslint . --fix --config config/eslint.config.js",
29
+ "format": "prettier --write . --config config/.prettierrc.json --ignore-path config/.prettierignore",
30
+ "format:check": "prettier --check . --config config/.prettierrc.json --ignore-path config/.prettierignore",
31
+ "test": "vitest run -c config/vitest.config.ts",
32
+ "test:watch": "vitest -c config/vitest.config.ts",
33
+ "test:coverage": "vitest run --coverage -c config/vitest.config.ts",
34
+ "test:consumer": "vitest run -c config/vitest.consumer.config.ts",
35
+ "docs": "typedoc --options config/typedoc.json",
36
+ "check:layout": "node scripts/check-layout.mjs",
37
+ "check:types-mirror": "node scripts/check-types-mirror.mjs",
38
+ "check:tarball": "node scripts/check-tarball.mjs",
39
+ "check": "npm run lint && npm run format:check && npm run typecheck && npm run test:coverage && npm run build && npm run check:layout && npm run check:types-mirror && npm run test:consumer && npm run check:tarball",
40
+ "prepare": "husky",
41
+ "prepublishOnly": "npm run build",
42
+ "smoke:scaffold": "node scripts/smoke-scaffold.mjs",
43
+ "changeset": "changeset",
44
+ "changeset:version": "changeset version",
45
+ "changeset:publish": "changeset publish"
46
+ },
47
+ "lint-staged": {
48
+ "*.{ts,js,mjs,cjs}": [
49
+ "eslint --fix --config config/eslint.config.js",
50
+ "prettier --write --config config/.prettierrc.json --ignore-path config/.prettierignore"
51
+ ],
52
+ "*.{json,md,yml,yaml}": [
53
+ "prettier --write --config config/.prettierrc.json --ignore-path config/.prettierignore"
54
+ ]
55
+ },
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/itsaorg/itsa-ts-blueprint.git"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/itsaorg/itsa-ts-blueprint/issues"
62
+ },
63
+ "homepage": "https://github.com/itsaorg/itsa-ts-blueprint#readme",
64
+ "publishConfig": {
65
+ "access": "public",
66
+ "provenance": true
67
+ },
68
+ "overrides": {
69
+ "eslint-visitor-keys": "4.2.0"
70
+ },
71
+ "devDependencies": {
72
+ "@changesets/cli": "^2.27.10",
73
+ "@commitlint/cli": "^19.6.1",
74
+ "@commitlint/config-conventional": "^19.6.0",
75
+ "@eslint/js": "^9.17.0",
76
+ "@types/node": "^22.10.2",
77
+ "@vitest/coverage-v8": "^2.1.8",
78
+ "eslint": "^9.17.0",
79
+ "eslint-config-prettier": "^9.1.0",
80
+ "husky": "^9.1.7",
81
+ "lint-staged": "^15.2.11",
82
+ "prettier": "^3.4.2",
83
+ "typedoc": "^0.27.5",
84
+ "typescript": "^5.7.2",
85
+ "typescript-eslint": "^8.18.2",
86
+ "vitest": "^2.1.8"
87
+ }
88
+ }
@@ -0,0 +1,6 @@
1
+ export type BlueprintHealth = {
2
+ readonly status: 'ok';
3
+ readonly package: '@itsaorg/ts-blueprint';
4
+ };
5
+ export declare function getBlueprintHealth(): BlueprintHealth;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC;CAC3C,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,eAAe,CAKpD"}