question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make the initial configuration `access` property `public` by default

See original GitHub issue

Affected Packages

Problem

Most people will try to use changeset with a public package for the first time, making the config generated by changeset init with restricted access as default will make the initial setup more difficult

In my case i got weird npm errors at time of publishing because i didn’t notice the config has access restricted by default (errors like EUNSCOPED Can't restrict access to unscoped packages)

Proposed solution

I think the default config should have "access": "public" as default

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
Andaristcommented, Mar 31, 2021

Well, this matches the npm’s default so I think it makes sense. Also not publishing a public package is just a minor obstacle that gets fixed pretty quickly - OTOH publishing a private package by accident might be a big deal.

We could make this a required property of the config in the future though - that way it would be more obvious for people that they should tweak it. WDYT @ianstormtaylor ?

2reactions
didoesdigitalcommented, Jan 25, 2021

Perhaps it is enough to give people a heads up. For example, under the init step of the CLI README add a note like:

To publish your packages publicly to NPM, you’ll need to edit .changeset/config.json and change "access": "restricted", to "access": "public",. Read more about access in config file options.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I access ASP default properties from project classes?
1 Answer 1 ... In your project, expand Properties and double click on the Settings.settings file. This will open it. Look at the...
Read more >
How to: Declare and Call a Default Property - Visual Basic
Declare the property in the normal way. Do not specify the Shared or Private keyword. · Include the Default keyword in the property...
Read more >
Guide to @ConfigurationProperties in Spring Boot - Baeldung
A quick and practical guide to @ConfigurationProperties annotation in Spring Boot.
Read more >
What is default visibility for properties/methods in Typescript ...
Public functions and properties can be accessed from anywhere. By default, all methods and properties are 'public'. In this example, we create a ......
Read more >
Spring Tips: Configuration
The first step for most Spring Boot developers is to use application.properties. The Spring Initializr even puts an empty ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found