https://pulumi.com logo
#kubernetes
Title
# kubernetes
b

big-potato-91793

01/07/2021, 11:18 PM
could someone help me with crd2pulumi
b

billowy-army-68599

01/08/2021, 5:01 AM
what do you need?
b

big-potato-91793

01/08/2021, 3:27 PM
I used the crd2pulumi and I was wondering what is the utilites for the
utilities.ts
that is generated in the tool?
p

purple-beach-36424

01/08/2021, 3:33 PM
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

big-potato-91793

01/09/2021, 12:01 PM
@billowy-army-68599 could you answer that questions?
q

quiet-wolf-18467

01/16/2021, 10:34 AM
@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

big-potato-91793

01/16/2021, 3:32 PM
Yeah indeed 🙂
q

quiet-wolf-18467

01/16/2021, 3:33 PM
In the mean time, I'm publishing each of the types on their own and it's working well
b

big-potato-91793

01/16/2021, 7:11 PM
indeed
6 Views