Skip to content

Commit c07e15b

Browse files
kvzclaude
andcommitted
feat: fix yarn verify scripts to use Node type stripping
- Add --experimental-strip-types flag for Node 25+ compatibility - Add --disable-warning flag for cleaner output - Update CHANGELOG backlog with verification progress Usage: yarn verify php/strings/sprintf # Verify specific function yarn verify:php # Verify all PHP functions Current status: 41/91 PHP string functions pass verification 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2fbb13d commit c07e15b

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ Ideas that will be planned and find their way into a release at one point
2929
- [ ] website: Render authors server-side
3030
- [ ] website: Fix the search functionality
3131
- [ ] Verification: verify examples against native runtimes (PHP/Go/Python/Ruby/C) with Docker
32-
- [ ] Docker containers for PHP, Go, Python, Ruby, C
33-
- [ ] JS-to-native example transpilation per language
32+
- [x] `yarn verify` and `yarn verify:php` scripts added
33+
- [x] Docker-based PHP verification working (41/91 string functions pass)
34+
- [ ] Improve JS→PHP translation (many failures due to syntax issues)
3435
- [ ] CI integration: fail if verification diverges
3536
- [ ] Badge: "Verified against PHP 8.3"
3637
- [ ] Modernize, e.g.:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"test:languages:noskip": "yarn build:tests:noskip && cross-env DEBUG='locutus:*' mocha --require babel-register --reporter spec 'src/**/*.mocha.js' 'test/**/test-*.js'",
4444
"test:languages": "yarn build:tests && cross-env DEBUG='locutus:*' mocha --require babel-register --reporter spec 'src/**/*.mocha.js' 'test/**/test-*.js'",
4545
"test:module": "babel-node test/module/module.js",
46-
"verify": "node scripts/verify.ts",
47-
"verify:php": "node scripts/verify.ts php",
46+
"verify": "node --experimental-strip-types --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/verify.ts",
47+
"verify:php": "node --experimental-strip-types --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/verify.ts php",
4848
"test:util": "mocha --require babel-register --reporter spec test/util/",
4949
"test": "npm-run-all test:languages test:util test:module",
5050
"website:install": "cd website && yarn",

0 commit comments

Comments
 (0)