10 Commits

Author SHA1 Message Date
Christopher Kolstad 78eb6ad911 task: migrate to pnpm (#11898)
Things worth noticing (+14075, -20262 most of this is due to yarn.lock
being deleted, and a new package manager tool being checked in)

## Code changes (actual changes to ts files)
### Not interesting
- being explicit about test imports in frontend rather than using
tsconfig globals to resolve `describe`, `it`, `test`, `expect` et al.
### Interesting
- Type signatures resolutions have changed a slightly bit, so some of
our Knex queries needed to be extracted for tsc to manage to type
analyse and pass type checking. All tests are green, so I'm assuming I
managed to reproduce the behaviour, in particular
src/lib/features/project/project-read-model.ts has some extra variables
to pass typechecking.


### Other considerations
- Do we still build the way we did? (pnpm pack produces the same
files/artifact as yarn pack)
- Will this merge cleanly with enterprise (which runs prepack)?

#### Known unknowns
- I've changed our vite.config.mts in frontend to use vite's own built
in tsconfigpaths, but Thomas pointed out that he tried that already and
ran into some issue when enterprise used the dependency, so we'll need
to double check that it works, and be ready to rollback to using the
deprecated plugin (and accept that vite gives us a warning that this is
now native functionality).

### Build failures
- Expected is openapi validation on main, we've changed to using pnpm
action rather than yarn action so it won't recognize yarn as a
packageManager on main
- dependency scanner, due to how pnpm resolves dependencies, we now have
a more direct dependencies, which our scanner apparently is scoring too
low for it to be OK with them. These were already a dependency, just
transitively rather than direct, so I'm comfortable with this.
2026-05-06 12:17:17 +02:00
David Alpert dc9c55234e Chore: rework docker-postgres.sh to be cross-platform (#1037)
I found the previous docker-postgres.sh script did not
work for me on macOS. this commit abstracts a pair
of commands behind functions which can be customized
by platform.

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-23 09:12:34 +02:00
Ivar Conradi Østhus 80ef17422b fix: remove pg_virtualenv scripts 2021-01-19 09:43:19 +01:00
Simen Bekkhus 5321a5e485 Use yarn in test script 2020-02-20 08:33:46 +01:00
ivaosthu 90859701c6 remove all lerna stuff 2020-02-20 08:30:37 +01:00
Ivar 1e6c6104d7 move script to unleash-api 2020-02-20 08:30:27 +01:00
Gard Rimestad 3dfe27cbab Start postgres on random port in docker #64 2020-02-20 08:30:19 +01:00
Gard Rimestad 93a25d4b5e DOCKER_HOST support added #64 2020-02-20 08:30:19 +01:00
Jari Bakken b1a8767cc0 Fix env var name in scripts/docker-postgres.sh 2020-02-20 08:30:19 +01:00
Gard Rimestad 5b95f0cfc2 Run tests with database in docker #64 2020-02-20 08:30:19 +01:00