@temir.ra/create-ts-lib 0.11.0-pre.7 → 0.11.0-pre.8
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 +200 -2
- package/README.md +3 -3
- package/buildinfo.txt +1 -1
- package/package.json +4 -4
- package/template/README.md +1 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,203 @@
|
|
|
1
1
|
# Version 0
|
|
2
2
|
|
|
3
|
-
## 0.0.
|
|
3
|
+
## 0.11.0-pre.6
|
|
4
4
|
|
|
5
|
-
1.
|
|
5
|
+
1. Synced template files with `workspace@0.7.0-pre.1` template.
|
|
6
|
+
2. Added more constants exports.
|
|
7
|
+
3. Refactored `buildinfo.test.ts`.
|
|
8
|
+
4. Included `tests/` in the published files.
|
|
9
|
+
5. Cleaned up minor `README.md` wording.
|
|
10
|
+
6. Updated `README.md` to reflect recent changes and clarify documentation.
|
|
11
|
+
7. Simplified the Publish section in the generated README, as the registry configuration steps are now covered in the `workspace` template README.
|
|
12
|
+
|
|
13
|
+
## 0.10.1
|
|
14
|
+
|
|
15
|
+
1. Fixed missing build output files.
|
|
16
|
+
|
|
17
|
+
## 0.10.0
|
|
18
|
+
|
|
19
|
+
1. Added `node:` prefix to imports.
|
|
20
|
+
2. Switched to `node:test` for tests.
|
|
21
|
+
3. Synced with `template@0.3.0-pre.3` template.
|
|
22
|
+
|
|
23
|
+
## 0.9.1
|
|
24
|
+
|
|
25
|
+
1. Updated from `template@0.2.1` template.
|
|
26
|
+
|
|
27
|
+
## 0.9.0
|
|
28
|
+
|
|
29
|
+
1. Switched to `esbuild` for bundling.
|
|
30
|
+
2. Switched to `@types/node` for type definitions.
|
|
31
|
+
3. Updated documentation to reflect the `esbuild` and `@types/node` changes.
|
|
32
|
+
4. Synced with `template@0.2.0-pre.5` template.
|
|
33
|
+
|
|
34
|
+
## 0.8.4
|
|
35
|
+
|
|
36
|
+
1. Fixed CDN rewrite plugin filter.
|
|
37
|
+
|
|
38
|
+
## 0.8.3
|
|
39
|
+
|
|
40
|
+
1. Updated buildinfo test wording to align with qualification strategies.
|
|
41
|
+
2. Fixed CDN rewrite resolution.
|
|
42
|
+
3. Added `--omit-iife` flag to optionally skip generating the IIFE bundle.
|
|
43
|
+
4. Synced with `template` template.
|
|
44
|
+
|
|
45
|
+
## 0.8.2
|
|
46
|
+
|
|
47
|
+
1. Updated from `template@0.1.9` template.
|
|
48
|
+
|
|
49
|
+
## 0.8.1
|
|
50
|
+
|
|
51
|
+
1. Added `DOM` to the `lib` array in the generated `tsconfig.json`.
|
|
52
|
+
|
|
53
|
+
## 0.8.0
|
|
54
|
+
|
|
55
|
+
1. Updated wording in the Publish section of the generated README.
|
|
56
|
+
2. `build:tsc` step is now generated per default.
|
|
57
|
+
3. Added `./constants` entrypoint to `package.json`.
|
|
58
|
+
|
|
59
|
+
## 0.7.6
|
|
60
|
+
|
|
61
|
+
1. Updated `typescript` to `6.0.3`.
|
|
62
|
+
2. Cleaned up minor `README.md` inconsistencies.
|
|
63
|
+
3. Aligned wording with [`RFC 2119`](https://datatracker.ietf.org/doc/html/rfc2119).
|
|
64
|
+
4. Updated files from `template` template.
|
|
65
|
+
|
|
66
|
+
## 0.7.5
|
|
67
|
+
|
|
68
|
+
1. Updated files from `@temir.ra/template@0.1.6` template.
|
|
69
|
+
|
|
70
|
+
## 0.7.4
|
|
71
|
+
|
|
72
|
+
1. Updated `keywords` in `template/package.json`.
|
|
73
|
+
2. Restored docs for `build*` and `tests` `package.json` scripts in `README.md`.
|
|
74
|
+
3. Reduced `scripts/dev.ts` section to a DevOps command.
|
|
75
|
+
4. Added clarification on the `files` field recommendation for `tests/` in the README.
|
|
76
|
+
5. Updated from `@temir.ra/template@0.1.5` template.
|
|
77
|
+
|
|
78
|
+
## 0.7.3
|
|
79
|
+
|
|
80
|
+
1. Updated from `@temir.ra/template@0.1.4` template.
|
|
81
|
+
|
|
82
|
+
## 0.7.2
|
|
83
|
+
|
|
84
|
+
1. Cleaned up `*-template.*` files from the template directory.
|
|
85
|
+
|
|
86
|
+
## 0.7.1
|
|
87
|
+
|
|
88
|
+
1. Updated `template/` files from `@temir.ra/workspace@0.4.1` template.
|
|
89
|
+
|
|
90
|
+
## 0.7.0
|
|
91
|
+
|
|
92
|
+
1. Updated `.gitignore`: added `bun.lock`, `buildinfo-template.txt`, `CHANGELOG-template.md`, `README-template.md`; replaced nested `template/.gitignore` with `template/gitignore` to prevent template files from being excluded during distribution.
|
|
93
|
+
2. Removed `CLAUDE.md`, `AGENTS.md`, and `src/dev.ts` from root and template.
|
|
94
|
+
3. Overhauled the generated `package.json`: added `private: false`; removed `sideEffects: false`; added build scripts to published `files`; updated `clean:tsbuildinfo` to `rm -f *.tsbuildinfo || true`; renamed `build:lib-bundle` to `build:bundle`; removed `build:lib` and `dev` scripts; added `reinstall` script; bumped typescript to `^6.0.2`.
|
|
95
|
+
4. Updated the generated `tsconfig.json`: changed `target` to `ESNext`; removed `DOM` from `lib`; added `types: ["bun"]`.
|
|
96
|
+
5. Removed generated `tsconfig.build.json`; TSC compilation is now opt-in and documented in `README.md`.
|
|
97
|
+
6. Renamed `scripts/build-lib-bundle.ts` to `scripts/build-bundle.ts` in root and template; updated to produce ESM and IIFE browser bundles; added to published `files`; updated CDN rewrite plugin filter.
|
|
98
|
+
7. Extracted path constants from `src/cli.ts` to `src/constants.ts`; CLI now copies `README.md` as `README-template.md` to generated projects; improved error message for missing package name argument; moved `template/src/dev.ts` to `template/scripts/dev.ts`.
|
|
99
|
+
8. Updated `scripts/buildinfo.ts` in root and template: reads version from `package.json` instead of `npm_package_version` env var; handles pre-existing `+` in version string.
|
|
100
|
+
9. Refactored `template/tests/buildinfo.test.ts` to use a proper semver regex.
|
|
101
|
+
10. Overhauled `README.md`: new documentation structure with build strategies overview, `package.json` and `tsconfig.json` sections referencing `create-workspace`, opt-in TSC Compilation section, `bin` field documentation, `scripts/dev.ts` section; removed `CLAUDE.md`/`AGENTS.md` section.
|
|
102
|
+
11. Updated from `@temir.ra/template@0.1.3` template.
|
|
103
|
+
|
|
104
|
+
## 0.6.3
|
|
105
|
+
|
|
106
|
+
1. Cleaned up dormant package scripts.
|
|
107
|
+
2. Cleaned up minor `README.md` inconsistencies.
|
|
108
|
+
|
|
109
|
+
## 0.6.2
|
|
110
|
+
|
|
111
|
+
1. Updated `clean:tsbuildinfo` script to remove both `tsconfig.tsbuildinfo` and `tsconfig.build.tsbuildinfo`.
|
|
112
|
+
|
|
113
|
+
## 0.6.1
|
|
114
|
+
|
|
115
|
+
1. Cleaned up dormant imports.
|
|
116
|
+
2. Cleaned up / updated minor `README.md` inconsistencies.
|
|
117
|
+
3. Updated placeholders in `README.md` in the **Asset resolution** section.
|
|
118
|
+
4. Removed **Asset resolution** section from the generated `README.md`, as the operational passage is given in the template `README.md`.
|
|
119
|
+
5. Removed **AI Assistant Context** section from the `README.md` files.
|
|
120
|
+
7. Cleaned up **Publish** section in the `README.md`.
|
|
121
|
+
|
|
122
|
+
## 0.6.0
|
|
123
|
+
|
|
124
|
+
1. Updated documentation and configs to TypeScript 6.
|
|
125
|
+
|
|
126
|
+
## 0.5.0
|
|
127
|
+
|
|
128
|
+
1. Changed `buildinfo.txt` generation and testing to align with [https://semver.org](https://semver.org).
|
|
129
|
+
|
|
130
|
+
## 0.4.1
|
|
131
|
+
|
|
132
|
+
1. Fixed `destinationPath` resolution in `cli.ts` to use the full resolved path instead of just the basename.
|
|
133
|
+
|
|
134
|
+
## 0.4.0
|
|
135
|
+
|
|
136
|
+
1. Added support for scoped package names in the CLI argument parsing and asset resolution.
|
|
137
|
+
|
|
138
|
+
## 0.3.1-pre.1 (unreleased)
|
|
139
|
+
|
|
140
|
+
1. Removed `dev.ts` file.
|
|
141
|
+
|
|
142
|
+
## 0.3.0
|
|
143
|
+
|
|
144
|
+
1. Removed AI Assistant Context files to be generated by the user with the provided prompts in the README.
|
|
145
|
+
|
|
146
|
+
## 0.2.8 (unreleased)
|
|
147
|
+
|
|
148
|
+
1. CLI now copies root `README.md` into the generated project as `README-template.md`.
|
|
149
|
+
2. Added `README-template.md` to `template/gitignore`.
|
|
150
|
+
3. Added `# AI Assistant Context` section to root `README.md` and `template/README.md` with prompts for generating AI coding assistant context files.
|
|
151
|
+
4. Revised Change Management step 6 in root `README.md` and `template/README.md`.
|
|
152
|
+
5. `.gitignore`'ing `bun.lock`.
|
|
153
|
+
|
|
154
|
+
## 0.2.8-pre.2
|
|
155
|
+
|
|
156
|
+
1. Removed `sideEffects` property from `package.json` as it is not a standard field.
|
|
157
|
+
2. Added references to npmjs and typescriptlang documentation for `package.json` and `tsconfig.json` in the README.
|
|
158
|
+
|
|
159
|
+
## 0.2.7
|
|
160
|
+
|
|
161
|
+
1. Changed `filter` property in `cdnRewritePlugin` in `scripts/build-lib-bundle.ts` to take import identifiers into account that do not have file extensions.
|
|
162
|
+
2. Changed `buildinfo.txt` generation in `scripts/buildinfo.ts` to read the version from `package.json` instead of relying on the `npm_package_version` environment variable. Enables correct version capture in monorepo setups.
|
|
163
|
+
|
|
164
|
+
## 0.2.6
|
|
165
|
+
|
|
166
|
+
1. Minor ToC and typo fixes in both README.md files (root and template).
|
|
167
|
+
2. Revised the Publish section in both README.md files.
|
|
168
|
+
|
|
169
|
+
## 0.2.5
|
|
170
|
+
|
|
171
|
+
1. Minor README updates.
|
|
172
|
+
2. Fixed `buildinfo.txt` in published package.
|
|
173
|
+
3. Fixed `buildinfo.test.ts` regex to accept semver prerelease identifiers.
|
|
174
|
+
|
|
175
|
+
## 0.2.4
|
|
176
|
+
|
|
177
|
+
1. Documented template caching in the Quick Start section with commands to pin the version or clear the cache.
|
|
178
|
+
2. Minor README updates: Revised Asset Resolution sections in root and template; Added introductory paragraph to Documentation section;
|
|
179
|
+
3. Moved git-upstream to `https://git.chimps.quest/trs/create-ts-lib.git`.
|
|
180
|
+
|
|
181
|
+
## 0.2.3
|
|
182
|
+
|
|
183
|
+
1. Updated change management workflow in `README.md` and `template/README.md`: build step now happens after merge (not before PR), so `buildinfo.txt` captures the correct git hash and artifacts are up to date before publish.
|
|
184
|
+
2. Added Change Management section to root and template `CLAUDE.md`.
|
|
185
|
+
|
|
186
|
+
## 0.2.2
|
|
187
|
+
|
|
188
|
+
1. Fixed `CHANGELOG.md` and `buildinfo.txt` copy paths in `cli.ts`: they were resolved relative to `template/` instead of the package root, causing the copy to fail. Refactored URL/path construction to derive all paths from a single `packageUrl`, eliminating redundant `fileURLToPath` calls at each copy site.
|
|
189
|
+
2. Added `buildinfo-template.txt` and `CHANGELOG-template.md` to `template/gitignore` so generated libraries do not track template files.
|
|
190
|
+
3. Added `example/` to the root `.gitignore` to exclude local test scaffold output.
|
|
191
|
+
4. Added a `bun run dist/cli.bundle.js -- example` snippet to the DevOps section of the README for quick local testing.
|
|
192
|
+
|
|
193
|
+
## 0.2.1
|
|
194
|
+
|
|
195
|
+
1. Added asset resolution documentation to root README: scoped asset folder convention, inline `import.meta.url` resolution, `fetch()` for isomorphic I/O, setup steps, checklist, and consumer README statement.
|
|
196
|
+
2. Updated template README with a reference to the asset resolution docs in the create-ts-lib README.
|
|
197
|
+
3. Updated both `CLAUDE.md` files.
|
|
198
|
+
4. Updated both `dev.ts` files to use inline `new URL('../', import.meta.url)`.
|
|
199
|
+
5. Removed `src/urls.ts` from root and template (not needed - inline resolution is sufficient).
|
|
200
|
+
|
|
201
|
+
## 0.1.0
|
|
202
|
+
|
|
203
|
+
1. First version of the template.
|
package/README.md
CHANGED
|
@@ -412,9 +412,9 @@ If the package exports a CLI only and is not intended to be imported in other pa
|
|
|
412
412
|
npm update
|
|
413
413
|
npm install
|
|
414
414
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
415
|
+
npm run clean
|
|
416
|
+
npm run build
|
|
417
|
+
npm run tests
|
|
418
418
|
|
|
419
419
|
npmx tsx dist/cli.bundle.js -- example/
|
|
420
420
|
```
|
package/buildinfo.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.11.0-pre.
|
|
1
|
+
0.11.0-pre.8+3ebf4d9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temir.ra/create-ts-lib",
|
|
3
|
-
"version": "0.11.0-pre.
|
|
3
|
+
"version": "0.11.0-pre.8",
|
|
4
4
|
"description": "A template for a distributable TypeScript library package.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"#src/*.js": "./src/*.ts"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"reinstall": "rm -rf node_modules && rm -f package-lock.json bun.lock yarn.lock pnpm-lock.yaml && npm install",
|
|
33
|
+
"reinstall": "shx rm -rf node_modules && shx rm -f package-lock.json bun.lock yarn.lock pnpm-lock.yaml && npm install",
|
|
34
34
|
"typecheck": "tsc --noEmit",
|
|
35
35
|
"buildinfo": "tsx scripts/buildinfo.ts",
|
|
36
|
-
"clean:dist": "rm -rf dist/",
|
|
37
|
-
"clean:tsbuildinfo": "rm -f tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
|
|
36
|
+
"clean:dist": "shx rm -rf dist/",
|
|
37
|
+
"clean:tsbuildinfo": "shx rm -f tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
|
|
38
38
|
"clean": "npm run clean:dist && npm run clean:tsbuildinfo",
|
|
39
39
|
"tests": "node --import tsx --test tests/**/*.test.ts",
|
|
40
40
|
"prebuild": "npm run buildinfo",
|
package/template/README.md
CHANGED
|
@@ -48,10 +48,6 @@ Configure the scope registry as described in the [`workspace` template README](h
|
|
|
48
48
|
```bash
|
|
49
49
|
# placeholder:
|
|
50
50
|
# <REGISTRY_AUTH_TOKEN_ENV_VAR: <REGISTRY_AUTH_TOKEN_ENV_VAR>
|
|
51
|
-
# <REGISTRY_ORIGIN_AND_PATH: <REGISTRY_ORIGIN_AND_PATH>
|
|
52
|
-
# e.g.
|
|
53
|
-
# registry.npmjs.org/
|
|
54
|
-
# forgejo.example.com/api/packages/<SCOPE_WITHOUT_AT>/npm/
|
|
55
51
|
```
|
|
56
52
|
|
|
57
53
|
Authenticate with the registry:
|
|
@@ -63,6 +59,5 @@ npm login
|
|
|
63
59
|
export <REGISTRY_AUTH_TOKEN_ENV_VAR>=<AUTH_TOKEN>
|
|
64
60
|
# or
|
|
65
61
|
$env:<REGISTRY_AUTH_TOKEN_ENV_VAR> = "<AUTH_TOKEN>"
|
|
66
|
-
|
|
67
|
-
npm publish --registry https://<REGISTRY_ORIGIN_AND_PATH>
|
|
62
|
+
npm publish
|
|
68
63
|
```
|