Comments (7)
Ah, now I understand the issue. All package managers that I know of (npm
, yarn
, pnpm
) have some means to achieve this. I suppose a setting for frozenLockfile: Boolean
would be ideal, defined outside of package manager. Then each package manager should alter its commands to respect it. I would not want to assume what should be the default behavior, package managers themselves are moving towards locking by default. scalajs-bunder
is not v1 so we can break things at will 😅 Definitely doable. What do you think? I could work on it.
from scalajs-bundler.
You can achieve this now with yarnExtraArgs
setting, they will get passed to yarn install
. Implementation of #417 will make this capability somewhat more expressive.
from scalajs-bundler.
This PR to be specific - #420.
from scalajs-bundler.
Right, this issue is about adding "first-class" support for frozen lockfiles, precisely so you don't have to muck about with yarnExtraArgs
. IMHO this is important enough to surface directly to the API. See for example the linked issue about Scala Steward integration.
from scalajs-bundler.
Yes, exactly :) sure, that would be great. However, personally I've become disillusioned about scalajs-bundler and using npm dependencies from Scala.js libs in general (I've focused on replacing them with pure Scala libs instead) so atm I no longer have much interest in this, sorry :(
from scalajs-bundler.
No worries, makes sense to have this feature anyways.
What replacements do you have in mind? Mind sharing some issues/PRs you are working on? I would be interested in checking them out.
from scalajs-bundler.
Here's a few off the top of my head, but if there's something specific you are curious about I can point you in the right direction.
- typelevel/skunk#587
- http4s/http4s#6009
- https://github.com/buntec/scala-js-snabbdom
- scala-js/scala-js-js-envs#20 (comment)
from scalajs-bundler.
Related Issues (20)
- is npm ci supported? HOT 3
- The Strict Mode emitted by Scala.js is not always preserved
- Generated source map points to incorrect URLs
- BundlingMode.LibraryOnly ignores `require` and `js.import`
- Documentation reports incorrect version HOT 3
- installJsdom may installs jsdom outside of the target directory
- Support `packageManager` in package.json
- Support Node Version Manager (NVM) HOT 2
- Error parsing webpack stats output HOT 6
- Providing `nodeExecCommand` setting HOT 4
- Yarn 2 throws `Unsupported option name ("--mutex")`
- sourcemap not work with BundlingMode.LibraryAndApplication
- Release v0.21.0 HOT 1
- Use with IntegrationTests
- BundlingMode.LibraryAndApplication() does not work with sourcemap to false
- digital envelope routines::unsupported on node versions > 16 HOT 3
- `AssertionError` on sbt 1.8.0 HOT 4
- webpackExtraArgs is ignored
- Could this be published with SBT 1.9.x?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalajs-bundler.