@scratch/scratch-media-lib-scripts 13.2.0-build-media-scripts → 13.3.0

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/index.js ADDED
@@ -0,0 +1,5 @@
1
+ const { buildLibraries } = require('./scripts/build_media_libraries');
2
+
3
+ module.exports = {
4
+ buildLibraries
5
+ };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@scratch/scratch-media-lib-scripts",
3
- "version": "13.2.0-build-media-scripts",
3
+ "version": "13.3.0",
4
4
  "description": "Build scripts for Scratch media library assets",
5
- "main": "scripts/build_media_libraries.js",
5
+ "main": "index.js",
6
6
  "bin": {
7
7
  "build-media-libraries": "./scripts/build_media_libraries.js"
8
8
  },
@@ -10,12 +10,10 @@
10
10
  "scripts",
11
11
  "schemas"
12
12
  ],
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
13
  "scripts": {
17
14
  "build": "node scripts/build_media_libraries.js media/editor",
18
15
  "test": "npm run lint && jest",
16
+ "test:unit": "jest",
19
17
  "lint": "eslint .",
20
18
  "format": "eslint --fix"
21
19
  },
@@ -31,7 +29,7 @@
31
29
  },
32
30
  "devDependencies": {
33
31
  "eslint": "9.39.4",
34
- "eslint-config-scratch": "14.0.8",
32
+ "eslint-config-scratch": "14.0.9",
35
33
  "jest": "^30.3.0",
36
34
  "jest-junit": "^16.0.0",
37
35
  "prettier": "3.8.1"
@@ -82,7 +82,7 @@
82
82
  "file": {
83
83
  "description": "The path to the image file.",
84
84
  "type": "string",
85
- "format": "data-url"
85
+ "format": "uri-reference"
86
86
  },
87
87
  "bitmapResolution": {
88
88
  "description": "The resolution multiplier for the bitmap image. New bitmaps should generally use 2.",
@@ -154,7 +154,7 @@
154
154
  "file": {
155
155
  "description": "The path to the audio file.",
156
156
  "type": "string",
157
- "format": "data-url"
157
+ "format": "uri-reference"
158
158
  },
159
159
  "rate": {
160
160
  "description": "The sampling rate of the audio file.",
@@ -901,7 +901,7 @@ describe('buildLibraries', () => {
901
901
  const spriteDir = path.join(tempInputDir, 'sprites', spriteName);
902
902
  fs.mkdirSync(spriteDir, { recursive: true });
903
903
  const jsonContent = {
904
- '$schema': '../../../schemas/media-collection-schema.json',
904
+ '$schema': '../../schemas/media-collection-schema.json',
905
905
  sprites: [{
906
906
  name: spriteName,
907
907
  costumes: [costumeName],