-
Notifications
You must be signed in to change notification settings - Fork 12
Use adapter-creator native TypeScript without build support #539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use adapter-creator native TypeScript without build support #539
Conversation
Co-authored-by: Apollon77 <[email protected]>
|
@copilot Please have a look at the test execution. You can use the file at https://github.com/ioBroker/ioBroker.example/blob/master/TypeScriptWithoutBuild/.create-adapter.json to compare which fields are kissing and to fill in some defaults |
… creation Co-authored-by: Apollon77 <[email protected]>
Fixed in 331cd52. Added the missing fields ( |
|
@copilot Please additionally to the current changes also add the parameter "--non-interactive" to the create-adapter call and endure that the creator did not returned an errorcode. In the future it will log such missing fields for easier problem resolvement. But no need to verify this now, just do this change |
Co-authored-by: Apollon77 <[email protected]>
Done in afb7393. Added |
Adjust "typescript direct without build" test to adapter-creator
This PR updates the pure TypeScript adapter test to use the native
@iobroker/create-adaptersupport for TypeScript adapters without build step, removing manual workarounds.Changes Made
test/adapters/test-pure-ts.create-adapter.jsonto use"language": "TypeScript (without build)"test/pure-ts-adapters.test.jsneedsTypeScriptPatching: trueflag from test setupcheckscript instead ofbuildscripttabReact,eslintConfig) to all config files for non-interactive creationcreatorVersionto"3.0.0"and aligntoolswith reference template--non-interactiveflag to create-adapter command to prevent promptsSummary
The adapter-creator now natively supports
"language": "TypeScript (without build)"which automatically generates an adapter with:mainfield pointing tosrc/main.tssrc/directory included in filescheckscript withtsc --noEmit(no build scripts)constdeclarations)All config files now include complete field sets and the
--non-interactiveflag is used to prevent interactive prompts during--replaymode. Error handling ensures non-zero exit codes from create-adapter are properly caught and reported.Security Summary
No security vulnerabilities detected by CodeQL analysis.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.