could someone help me with crd2pulumi
# kubernetes
b
could someone help me with crd2pulumi
b
what do you need?
b
I used the crd2pulumi and I was wondering what is the utilites for the
utilities.ts
that is generated in the tool?
p
If I may add, our question would be?
what’s the purpose of the “required”
package.json
?
Copy code
export function getVersion(): string {
    let version = require('./package.json').version;
    // Node allows for the version to be prefixed by a "v", while semver doesn't.
    // If there is a v, strip it off.
    if (version.indexOf('v') === 0) {
b
@billowy-army-68599 could you answer that questions?
q
@big-potato-91793 I've found the requirement on that utilities function rather frustrating too, as it makes embedded the generated types into an existing library impossible. I opened an issue about it a while back
b
Yeah indeed 🙂
q
In the mean time, I'm publishing each of the types on their own and it's working well
b
indeed