@design.estate/dees-catalog 3.81.0 → 3.81.1

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.
@@ -204633,4 +204633,4 @@ ibantools/jsnext/ibantools.js:
204633
204633
  * @preferred
204634
204634
  *)
204635
204635
  */
204636
- //# sourceMappingURL=bundle-1776421329273.js.map
204636
+ //# sourceMappingURL=bundle-1779325199992.js.map
package/package.json CHANGED
@@ -1,18 +1,11 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "3.81.0",
3
+ "version": "3.81.1",
4
4
  "private": false,
5
5
  "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
6
6
  "main": "dist_ts_web/index.js",
7
7
  "typings": "dist_ts_web/index.d.ts",
8
8
  "type": "module",
9
- "scripts": {
10
- "test": "tstest test/ --web --verbose --timeout 30 --logfile",
11
- "build": "tsbuild tsfolders --allowimplicitany && tsbundle",
12
- "watch": "tswatch",
13
- "buildDocs": "tsdoc",
14
- "postinstall": "node scripts/update-monaco-version.cjs"
15
- },
16
9
  "author": "Lossless GmbH",
17
10
  "license": "MIT",
18
11
  "dependencies": {
@@ -60,6 +53,7 @@
60
53
  "dist_ts/**/*",
61
54
  "dist_ts_web/**/*",
62
55
  "assets/**/*",
56
+ "scripts/**/*",
63
57
  "cli.js",
64
58
  ".smartconfig.json",
65
59
  "readme.md"
@@ -93,5 +87,11 @@
93
87
  "Modern Web",
94
88
  "Frontend Development"
95
89
  ],
96
- "packageManager": "pnpm@10.7.0+sha512.6b865ad4b62a1d9842b61d674a393903b871d9244954f652b8842c2b553c72176b278f64c463e52d40fff8aba385c235c8c9ecf5cc7de4fd78b8bb6d49633ab6"
97
- }
90
+ "scripts": {
91
+ "test": "tstest test/ --web --verbose --timeout 30 --logfile",
92
+ "build": "tsbuild tsfolders --allowimplicitany && tsbundle",
93
+ "watch": "tswatch",
94
+ "buildDocs": "tsdoc",
95
+ "postinstall": "node scripts/update-monaco-version.cjs"
96
+ }
97
+ }
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+
5
+ const projectRoot = path.resolve(__dirname, '..');
6
+
7
+ function resolveMonacoPackageJson() {
8
+ try {
9
+ const resolvedPath = require.resolve('monaco-editor/package.json', {
10
+ paths: [projectRoot],
11
+ });
12
+ return resolvedPath;
13
+ } catch (error) {
14
+ console.error('[dees-workspace] Unable to resolve monaco-editor/package.json');
15
+ throw error;
16
+ }
17
+ }
18
+
19
+ function getMonacoVersion() {
20
+ const monacoPackagePath = resolveMonacoPackageJson();
21
+ const monacoPackage = require(monacoPackagePath);
22
+ if (!monacoPackage.version) {
23
+ throw new Error('[dees-workspace] monaco-editor/package.json does not expose a version field');
24
+ }
25
+ return monacoPackage.version;
26
+ }
27
+
28
+ function writeVersionModule(version) {
29
+ const targetDir = path.join(projectRoot, 'ts_web', 'elements', '00group-workspace', 'dees-workspace-monaco');
30
+ fs.mkdirSync(targetDir, { recursive: true });
31
+ const targetFile = path.join(targetDir, 'version.ts');
32
+ const fileContent = `// Auto-generated by scripts/update-monaco-version.cjs\nexport const MONACO_VERSION = '${version}';\n`;
33
+ fs.writeFileSync(targetFile, fileContent, 'utf8');
34
+ console.log(`[dees-workspace] Wrote ${path.relative(projectRoot, targetFile)} with monaco-editor@${version}`);
35
+ }
36
+
37
+ try {
38
+ const version = getMonacoVersion();
39
+ writeVersionModule(version);
40
+ } catch (error) {
41
+ console.error('[dees-workspace] Failed to update Monaco version module.');
42
+ console.error(error instanceof Error ? error.message : error);
43
+ process.exitCode = 1;
44
+ }