Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
cache: npm
- run: npm ci
- run: npm run build
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to npm

on:
push:
tags:
- 'v*'

permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm ci
- run: npm run build
- run: npm test
- run: npm publish
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 57 additions & 60 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,60 @@
{
"name": "scratch-storage",
"version": "0.0.0-development",
"description": "Load and store project and asset files for Scratch 3.0",
"license": "BSD-3-Clause",
"homepage": "https://github.com/PenguinMod-Port/scratch-storage#readme",
"repository": {
"type": "git",
"url": "https://github.com/PenguinMod-Port/scratch-storage.git"
},
"main": "./dist/node/scratch-storage.js",
"browser": "./dist/web/scratch-storage.js",
"scripts": {
"prepublishOnly": "npm run build",
"build": "webpack --progress --colors --bail",
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",
"commitmsg": "commitlint -e $GIT_PARAMS",
"test": "npm run test:lint && jest \"test[\\\\/](unit|integration)\"",
"test:clearCache": "jest --clearCache",
"test:lint": "eslint .",
"test:integration": "jest \"test[\\\\/]integration\"",
"test:unit": "jest \"test[\\\\/]unit\"",
"version": "json -f package.json -I -e \"this.repository.sha = '$(git log -n1 --pretty=format:%H)'\"",
"watch": "webpack --progress --colors --watch",
"semantic-release": "semantic-release"
},
"tap": {
"check-coverage": false
},
"dependencies": {
"@babel/runtime": "7.21.0",
"@turbowarp/nanolog": "^0.2.0",
"arraybuffer-loader": "^1.0.3",
"base64-js": "1.3.0",
"cross-fetch": "3.1.5",
"js-md5": "0.7.3",
"pmp-protobuf": "^1.6.0",
"worker-loader": "^2.0.0"
},
"devDependencies": {
"@babel/core": "7.14.8",
"@babel/plugin-transform-runtime": "7.21.0",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.14.8",
"@types/jest": "29.5.1",
"babel-eslint": "10.1.0",
"babel-loader": "8.0.6",
"eslint": "8.55.0",
"eslint-config-scratch": "9.0.3",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-react": "7.33.2",
"file-loader": "4.1.0",
"jest": "29.5.0",
"json": "^9.0.4",
"webpack": "4.47.0",
"webpack-cli": "3.1.2"
},
"overrides": {
"webpack@4.47.0": {
"terser-webpack-plugin": "^4.2.3"
}
"name": "@turbowarp/scratch-storage",
"version": "2.0.0",
"description": "Load and store project and asset files for Scratch 3.0",
"license": "BSD-3-Clause",
"homepage": "https://github.com/TurboWarp/scratch-storage#readme",
"repository": {
"type": "git",
"url": "https://github.com/TurboWarp/scratch-storage.git"
},
"main": "./dist/node/scratch-storage.js",
"browser": "./dist/web/scratch-storage.js",
"scripts": {
"prepublishOnly": "npm run build",
"build": "webpack --progress --colors --bail",
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",
"test": "npm run test:lint && jest \"test[\\\\/](unit|integration)\"",
"test:clearCache": "jest --clearCache",
"test:lint": "eslint .",
"test:integration": "jest \"test[\\\\/]integration\"",
"test:unit": "jest \"test[\\\\/]unit\"",
"watch": "webpack --progress --colors --watch"
},
"tap": {
"check-coverage": false
},
"dependencies": {
"@babel/runtime": "7.21.0",
"@turbowarp/nanolog": "^0.2.0",
"arraybuffer-loader": "^1.0.3",
"base64-js": "1.3.0",
"cross-fetch": "3.1.5",
"js-md5": "0.7.3",
"pmp-protobuf": "^1.6.0",
"worker-loader": "^2.0.0"
},
"devDependencies": {
"@babel/core": "7.14.8",
"@babel/plugin-transform-runtime": "7.21.0",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.14.8",
"@types/jest": "29.5.1",
"babel-eslint": "10.1.0",
"babel-loader": "8.0.6",
"eslint": "8.55.0",
"eslint-config-scratch": "9.0.3",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-react": "7.33.2",
"file-loader": "4.1.0",
"jest": "29.5.0",
"json": "^9.0.4",
"webpack": "4.47.0",
"webpack-cli": "3.1.2"
},
"overrides": {
"webpack@4.47.0": {
"terser-webpack-plugin": "^4.2.3"
}
}
}
Loading