Commit Graph

27 Commits

Author SHA1 Message Date
Mrugesh Mohapatra
e5590e56d7 chore: use pnpm v8 for deps (#49892)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-29 20:18:49 +05:30
Oliver Eyton-Williams
c498c06259 fix(deps): add missing dependencies + fix knip (#49691)
* refactor: use pnpm dlx over npx

* fix: create config before running knip

* chore: fix challenge-parser dependencies

* chore: add missing client + plugin dependencies

* chore: pin deps
2023-03-13 19:38:19 +05:30
Oliver Eyton-Williams
d7848ae01a feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
renovate[bot]
47aef5155b chore(deps): pin dependencies (#44358)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-02 20:48:15 +05:30
Oliver Eyton-Williams
bb0e7317c8 fix: only use parts of gfm parser 2021-12-02 19:57:47 +05:30
Mrugesh Mohapatra
6fef483946 chore: update all packages to node v16 & npm v8 2021-11-03 15:06:19 +05:30
renovate[bot]
4950313ca0 chore(deps): update dependency remark-html to 13.0.2 [security] (#43400)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-08 13:46:01 -05:00
renovate[bot]
94788e2719 chore(deps): update dependency unist-util-select to v3.0.4 (#42043)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-07 19:16:23 +05:30
renovate[bot]
955e6eea9d chore(deps): update dependency lodash to 4.17.21 [security] (#42032)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-06 20:24:21 +02:00
Renovate Bot
8bdc99c11f fix(deps): update dependency hast-util-to-html to v7.1.3 2021-05-03 12:28:11 +00:00
renovate[bot]
9c86ed508c fix(deps): update dependency micromark-extension-gfm-table to v0.4.3 (#41883)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-22 12:28:47 +05:30
renovate[bot]
283ed2d6ca fix(deps): update dependency micromark-extension-gfm-strikethrough to v0.6.5 (#41661)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-21 18:54:56 +05:30
Renovate Bot
5b4cb91a2a fix(deps): update dependency unist-util-remove to v2.1.0 2021-04-15 02:23:06 +00:00
renovate[bot]
f8f89149c4 fix(deps): update dependency mdast-util-gfm to v0.1.2 (#41660)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 18:15:06 +05:30
Renovate Bot
2eaa5d6457 fix(deps): update dependency unist-util-remove to v2.0.1 2021-03-31 20:17:24 +00:00
Renovate Bot
613fbf81ee fix(deps): update dependency unist-util-is to v4.1.0 2021-03-31 13:22:23 +00:00
Renovate Bot
30026f47c6 fix(deps): update dependency unist-util-find-all-after to v3.0.2 2021-03-31 11:58:03 +00:00
Renovate Bot
611b3b2a42 fix(deps): update dependency unist-util-find to v1.0.2 2021-03-31 07:22:21 +00:00
Renovate Bot
ae9395648f fix(deps): update dependency js-yaml to v3.14.1 2021-03-30 21:39:20 +00:00
renovate[bot]
fcf86af5b2 fix(deps): update dependency hast-util-to-html to v7.1.2 (#41647)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-29 18:14:19 +05:30
renovate[bot]
08114292c3 fix(deps): pin dependencies (#41589)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:57:57 +05:30
Mrugesh Mohapatra
42365dd172 fix: update package files, lerna config (#41599)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-03-27 07:46:20 -07:00
Mrugesh Mohapatra
0a53a1d7f0 chore(deps): upgrade lerna to v4 2021-03-11 12:19:42 +05:30
Oliver Eyton-Williams
04c2f4e620 fix: parse ::directives correctly (#41186) 2021-02-22 09:14:12 +05:30
Oliver Eyton-Williams
48a210aeab chore: update parser description 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams
9ff3a29a72 refactor: remove remains of old parser 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams
a3a678b7af chore: remove old parser 2021-02-02 09:51:02 +05:30