@widgetic/canvas 0.5.22 → 0.5.23

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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -155,3 +155,7 @@ reads the language of that canvas, so two canvases on one page can speak two lan
155
155
  - Simplified the edit lifecycle: Fabric now handles hover/edit visuals, while we ensure placeholders restore after `editing:exited` and outside clicks call `exitEditing()`.
156
156
  - Kept textbox focusing logic lightweight—just focus the hidden textarea and rely on Fabric’s built-in selection/caret behaviour.
157
157
  - Resolved previous lint warnings in `src/lib/canvas/tools/ToolController.ts` by tightening event typings and removing unused overlay helpers.
158
+
159
+ ## Publishing
160
+
161
+ GitLab CI on `main` publishes this package. Bump `version` in `package.json` and push `main`. The job is an npm Trusted Publisher (`NPM_ID_TOKEN`) and skips a version that is already on npm. A laptop publish is the fallback when CI minutes are gone. The token stays in `~/.npmrc` and is never committed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/canvas",
3
- "version": "0.5.22",
3
+ "version": "0.5.23",
4
4
  "type": "module",
5
5
  "svelte": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -51,6 +51,7 @@
51
51
  "dev-sv": "NODE_ENV=development vite dev",
52
52
  "build": "vite build && npm run package",
53
53
  "package": "NODE_ENV=production svelte-package",
54
+ "publish-to-npm": "npm version patch --no-git-tag-version && npm run package && npm publish --ignore-scripts --access public",
54
55
  "package:watch": "NODE_ENV=development svelte-package --watch",
55
56
  "test": "node --test \"scripts/*.test.ts\" \"tests/*.test.mjs\"",
56
57
  "preview": "vite preview",