@bubblydoo/uxp-toolkit 0.0.2 → 0.0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @bubblydoo/uxp-toolkit@0.0.2 build /home/runner/work/uxp-toolkit/uxp-toolkit/packages/uxp-toolkit
2
+ > @bubblydoo/uxp-toolkit@0.0.4 build /home/runner/work/uxp-toolkit/uxp-toolkit/packages/uxp-toolkit
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,7 +9,7 @@
9
9
  CLI Target: es2022
10
10
  ESM Build start
11
11
  ESM dist/index.js 19.84 KB
12
- ESM ⚡️ Build success in 37ms
12
+ ESM ⚡️ Build success in 28ms
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 2537ms
14
+ DTS ⚡️ Build success in 2388ms
15
15
  DTS dist/index.d.ts 10.96 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @bubblydoo/uxp-toolkit
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - d0d1067: Setup changeset releases
8
+
9
+ ## 0.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 9d267c8: UXP test framework plugin publish works, many fixes done
14
+
3
15
  ## 0.0.2
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@bubblydoo/uxp-toolkit",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
+ "author": "Hans Otto Wirtz <hansottowirtz@gmail.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/bubblydoo/uxp-toolkit.git"
10
+ },
11
+ "homepage": "https://github.com/bubblydoo/uxp-toolkit/tree/main/packages/uxp-toolkit",
6
12
  "exports": {
7
13
  ".": {
8
14
  "types": "./dist/index.d.ts",
@@ -27,15 +33,16 @@
27
33
  "@types/node": "^20.8.7",
28
34
  "@types/photoshop": "^25.0.2",
29
35
  "chai": "^6.2.2",
36
+ "rollup": "^4.57.0",
30
37
  "tsup": "^8.5.1",
31
38
  "typescript": "^5.8.3",
32
39
  "zod": "^4.3.6",
33
- "@bubblydoo/uxp-test-framework": "0.0.2",
34
- "@bubblydoo/tsconfig": "0.0.1"
40
+ "@bubblydoo/tsconfig": "0.0.3",
41
+ "@bubblydoo/uxp-test-framework": "0.0.4"
35
42
  },
36
43
  "scripts": {
37
44
  "build": "tsup",
38
- "uxp-tests:build": "create-uxp-test-plugin build",
39
- "uxp-tests:dev": "create-uxp-test-plugin dev"
45
+ "uxp-test:build": "uxp-test build",
46
+ "uxp-test:dev": "uxp-test dev"
40
47
  }
41
48
  }
package/test/index.ts CHANGED
@@ -7,6 +7,7 @@ import { sourcemapsTest } from "../src/error-sourcemaps/sourcemaps.uxp-test";
7
7
  import { clipboardTest } from "../src/other/clipboard.uxp-test";
8
8
  import { photoshopLayerDescriptorsToUTLayersTest } from "../src/ut-tree/photoshopLayerDescriptorsToUTLayers.uxp-test";
9
9
  import { metadataStorageTest } from "../src/metadata-storage/metadataStorage.uxp-test";
10
+ import { builtinModulesTest } from "./meta-tests/builtinModules.uxp-test";
10
11
 
11
12
  export const tests = [
12
13
  applicationInfoTest,
@@ -18,4 +19,5 @@ export const tests = [
18
19
  clipboardTest,
19
20
  photoshopLayerDescriptorsToUTLayersTest,
20
21
  metadataStorageTest,
22
+ builtinModulesTest,
21
23
  ];
@@ -0,0 +1,42 @@
1
+ import type { Test } from "@bubblydoo/uxp-test-framework";
2
+ import { expect } from "chai";
3
+
4
+ export const builtinModulesTest: Test = {
5
+ name: "meta: some builtin modules should be available",
6
+ async run() {
7
+ const testModules = [
8
+ "photoshop",
9
+ "uxp",
10
+ "fs",
11
+ "os",
12
+ "path",
13
+ "process",
14
+ "shell",
15
+ "http",
16
+ "https",
17
+ "url",
18
+ "util",
19
+ "crypto",
20
+ "stream",
21
+ "zlib",
22
+ ];
23
+ const successModules = testModules.filter(module => doesImportExist(module));
24
+ expect(successModules).to.deep.eq([
25
+ "photoshop",
26
+ "uxp",
27
+ "fs",
28
+ "os",
29
+ "path",
30
+ "process",
31
+ ]);
32
+ },
33
+ };
34
+
35
+ function doesImportExist(module: string) {
36
+ try {
37
+ require(module);
38
+ return true;
39
+ } catch {
40
+ return false;
41
+ }
42
+ }
package/uxp-tests.json CHANGED
@@ -8,6 +8,7 @@
8
8
  "name": "UXP Toolkit Tests"
9
9
  },
10
10
  "vite": {
11
+ "hotReloadPort": 8081,
11
12
  "enableTsconfigPathsPlugin": true
12
13
  }
13
14
  }