TJ Koblentz : @nachocab/pipedream-global - npm
Nacho Caballero : Oh, sorry. I meant 2.0.4
TJ Koblentz : that should work right? i’m still trying to figure out the issue with @latest — but hopefully specific versions should not error anymore?
Nacho Caballero : No, if you check the screenshot you’ll see I used 2.0. 4
Nacho Caballero : It was a typo in slack
TJ Koblentz : yes but now it should work
Nacho Caballero : Thanks. I’ll test it tomorrow :skin-tone-3:
Nacho Caballero : Hi I just published 2.0.5 and tested require('@nachocab/pipedream-global')
, which logged 2.0.3 and require('@nachocab/pipedream-global@2.0.5')
, which logged undefined
TJ Koblentz : can you make changes in other parts of the code
TJ Koblentz : i want to see if it’s just a problem with the caching strategy
TJ Koblentz : like if you make a line with a comment and just put random stuff in that comment between saves as well
TJ Koblentz : oh wait what does that scopedPackageVersion line say?
TJ Koblentz : i think it’s working just there is a little magic going on — so it’s not at that spot in the object
TJ Koblentz : the suffix is there to support multiple versions of packages at once
TJ Koblentz : and it’s base64 encoded because npm doesn’t allow @
s, etc. in there
Nacho Caballero : const scopedPackageVersion = require(‘root-require’)(‘package.json’).dependencies[’@nachocab/pipedream-global’]
TJ Koblentz : just print out .dependencies
and you will see what i mean — the dependency is being named differently