@_linked/cli 1.4.3 → 1.4.4

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#30](https://github.com/linked-cm/cli/pull/30) [`420c735`](https://github.com/linked-cm/cli/commit/420c7350741e5e2c1b7b76ecbaa4608a9b7ae4f0) Thanks [@flyon](https://github.com/flyon)! - `defaults/package/package.json` (the `linked create-package` template) now uses the explicit per-step build pipeline instead of `yarn linked build`. The wrapper script was silently swallowing TS compile errors and shipping empty tarballs — the exact same bug that affected every existing `@_linked/*` package built with it.
8
+
9
+ New packages created via `linked create-package` now ship with a build script that fails loudly on real errors and produces complete `lib/esm/` + `lib/cjs/` output.
10
+
3
11
  ## 1.4.3
4
12
 
5
13
  ### Patch Changes
@@ -18,9 +18,11 @@
18
18
  "license": "ISC",
19
19
  "scripts": {
20
20
  "start": "yarn linked dev",
21
- "build": "yarn linked build",
22
- "prepublishOnly": "yarn linked build production",
23
- "postpublish": "yarn linked register"
21
+ "build": "rimraf ./lib && yarn build-esm && yarn build-cjs && yarn copy-to-lib && yarn dual-package",
22
+ "build-esm": "echo \"compiling ESM\" && rimraf ./lib/esm && yarn tsc -p tsconfig-esm.json",
23
+ "build-cjs": "echo \"compiling CJS\" && rimraf ./lib/cjs && yarn tsc -p tsconfig-cjs.json",
24
+ "copy-to-lib": "echo 'copying CSS + JSON assets to lib folder' && yarn copyfiles -u 1 'src/**/*.css' 'src/**/*.json' lib/esm && yarn copyfiles -u 1 'src/**/*.css' 'src/**/*.json' lib/cjs",
25
+ "dual-package": "echo 'adding package.json to each lib folder for dual output support' && yarn tsconfig-to-dual-package ./tsconfig-cjs.json ./tsconfig-esm.json"
24
26
  },
25
27
  "keywords": [
26
28
  "linked",
@@ -58,6 +60,8 @@
58
60
  "devDependencies": {
59
61
  "@types/node": "^22.13.14",
60
62
  "@_linked/cli": "^1.2",
63
+ "copyfiles": "^2.4.1",
64
+ "rimraf": "^5.0.7",
61
65
  "tsconfig-to-dual-package": "^1.2.0",
62
66
  "typescript": "^5.7.3"
63
67
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_linked/cli",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Command line tools for the @_linked/* packages and apps",
5
5
  "typesVersions": {
6
6
  "*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_linked/cli",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Command line tools for the @_linked/* packages and apps",
5
5
  "typesVersions": {
6
6
  "*": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_linked/cli",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Command line tools for the @_linked/* packages and apps",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",