This makes a couple of changes to get yarn build working:
Bumps Typescript - there's failures from recently bumped packages expecting a new version of Typescript
Uses sass in place of node-sass. node-sass is deprecated and will not run on our M1 Macs, but is required by rollup-plugin-scss as a dev dependency. sass provides the same APIs as node-sass so rollup-plugin-scss will run using it.
Bumps some other things which were not compatible with the newer version of Typescript
How to test
I've tested this locally by:
Installing the most recently dependencies by running yarn
Running yarn build and seeing the files build properly in /dist/
Runing yalc publish and then adding to Composer locally with yalc add @guardian/prosemirror-noting, then updating the dependencies in the composer directory with npm i, then running ./dev-start.sh in the flexible-content repo root directory.
What does this change?
This makes a couple of changes to get
yarn build
working:node-sass
is deprecated and will not run on our M1 Macs, but is required byrollup-plugin-scss
as a dev dependency.sass
provides the same APIs as node-sass sorollup-plugin-scss
will run using it.How to test
I've tested this locally by:
yarn
yarn build
and seeing the files build properly in /dist/yalc publish
and then adding to Composer locally withyalc add @guardian/prosemirror-noting
, then updating the dependencies in the composer directory withnpm i
, then running./dev-start.sh
in the flexible-content repo root directory.