Make the initial configuration `access` property `public` by default
See original GitHub issueAffected 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:
- Created 3 years ago
- Reactions:4
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 ?
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.