twinny-server 4.2.8 → 4.3.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.
Files changed (2) hide show
  1. package/cli.js +1152 -685
  2. package/package.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twinny-server",
3
- "version": "4.2.8",
3
+ "version": "4.3.1",
4
4
  "description": "Serve your local models to the Twinny VS Code extension on other machines.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -36,6 +36,6 @@
36
36
  "node": ">=18"
37
37
  },
38
38
  "scripts": {
39
- "prepublishOnly": "node -e \"require('fs').accessSync('cli.js')\" || (echo 'Run npm run build in the repository root first' && exit 1)"
39
+ "prepublishOnly": "node -e \"const fs=require('fs');const v=require('./package.json').version;if(!fs.existsSync('cli.js')){console.error('Run npm run build in the repository root first');process.exit(1)}if(!fs.readFileSync('cli.js','utf8').includes('\\\"'+v+'\\\" : \\\"dev\\\"')){console.error('cli.js was not built for '+v+': run npm run build in the repository root first');process.exit(1)}\""
40
40
  }
41
41
  }