Git Product home page Git Product logo

Comments (5)

dkershner6 avatar dkershner6 commented on June 2, 2024 1

Oh boy...

Just ignore me. Thanks for the sounding board.

Closing because I cannot read. 🙈

from projen.

mrgrain avatar mrgrain commented on June 2, 2024 1

Another happy customer 😆

from projen.

mrgrain avatar mrgrain commented on June 2, 2024

Not sure I understand, but you'll probably create the PR yourself anyway. I'll leave you to it 😅

from projen.

dkershner6 avatar dkershner6 commented on June 2, 2024

Actually I will probably need your help, @mrgrain .

Currently this is implemented as an IniFile, which makes sense since even NPM says it is an INI-file. All examples below are from the page I linked.

This easily supports the patterns we currently have:

@myscope:registry=https://mycustomregistry.example.org for example, since INI are separated by equals.

BUT, npmrc has settings NOT separated by equals. Invalid comments are mine to point out the lines we cant support.

; bad config
_authToken=MYTOKEN # We could support this, if it worked.

; good config
@myorg:registry=https://somewhere-else.com/myorg
@another:registry=https://somewhere-else.com/another
//registry.npmjs.org/:_authToken=MYTOKEN # We can't support this
; would apply to both @myorg and @another
; //somewhere-else.com/:_authToken=MYTOKEN # We can't support this
; would apply only to @myorg
//somewhere-else.com/myorg/:_authToken=MYTOKEN1 # We can't support this
; would apply only to @another
//somewhere-else.com/another/:_authToken=MYTOKEN2 # We can't support this

We could move away from IniFile to TextFile, but I don't know all the implications.

from projen.

mrgrain avatar mrgrain commented on June 2, 2024

I'm still lost. All of these lines are separated by a =? 🤔

Implication of using a TextFile is more work, and we loose the features of IniFile. I'd rather fix the problems with IniFile

from projen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.