Skip to content

Commit 126fb5a

Browse files
committed
fix(sass): drop node-sass in favor of sass since it's deprecated
BREAKING CHANGE: `node-sass` is no longer supported and users must switch to `sass`
1 parent b371337 commit 126fb5a

File tree

16 files changed

+53
-129
lines changed

16 files changed

+53
-129
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ cd my-app
6565
> NOTE: You can also add the `--typescript` flag to bootstrap a react-app with
6666
> typescript support
6767
68-
Next, install `react-md` and `node-sass`:
68+
Next, install `react-md` and `sass`:
6969

7070
```sh
71-
npm install --save react-md node-sass
71+
npm install --save react-md sass
7272
```
7373

7474
Next, create a `src/App.scss` file to include all the `react-md` styles and

examples/create-react-app-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"@types/react": "^16.9.53",
1818
"@types/react-dom": "^16.9.8",
1919
"@types/react-router-dom": "^5.1.5",
20-
"node-sass": "^4.14.1",
2120
"react": "^17.0.1",
2221
"react-dom": "^17.0.1",
2322
"react-md": "latest",
2423
"react-router-dom": "^5.2.0",
2524
"react-scripts": "4.0.0",
25+
"sass": "^1.36.0",
2626
"typescript": "^4.0.3",
2727
"web-vitals": "^0.2.4"
2828
},

examples/create-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"@testing-library/jest-dom": "^5.11.6",
1313
"@testing-library/react": "^11.1.2",
1414
"@testing-library/user-event": "^12.2.2",
15-
"node-sass": "^4.14.1",
1615
"react": "^17.0.1",
1716
"react-dom": "^17.0.1",
1817
"react-md": "latest",
1918
"react-router-dom": "^5.2.0",
2019
"react-scripts": "4.0.0",
20+
"sass": "^1.36.0",
2121
"web-vitals": "^0.2.4"
2222
},
2323
"eslintConfig": {

examples/gatsby-typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"gatsby-plugin-layout": "^1.3.10",
2323
"gatsby-plugin-sass": "^2.3.12",
2424
"gatsby-plugin-typescript": "^2.4.16",
25-
"node-sass": "^4.14.1",
26-
"prettier": "2.0.5"
25+
"prettier": "2.0.5",
26+
"sass": "^1.36.0"
2727
}
2828
}

examples/gatsby/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"devDependencies": {
2222
"gatsby-plugin-layout": "^1.3.10",
2323
"gatsby-plugin-sass": "^2.3.12",
24-
"node-sass": "^4.14.1",
25-
"prettier": "2.0.5"
24+
"prettier": "2.0.5",
25+
"sass": "^1.36.0"
2626
}
2727
}

examples/nextjs-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"devDependencies": {
1717
"@types/node": "^14.0.27",
1818
"@types/react": "^16.9.43",
19-
"node-sass": "^4.14.1",
19+
"sass": "^1.36.0",
2020
"typescript": "^3.9.7"
2121
}
2222
}

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"react-md": "latest"
1515
},
1616
"devDependencies": {
17-
"node-sass": "^4.14.1"
17+
"sass": "^1.36.0"
1818
}
1919
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"@types/jest": "^27.0.0",
6565
"@types/lodash": "^4.14.172",
6666
"@types/node": "^15.14.7",
67-
"@types/node-sass": "^4.11.2",
6867
"@types/prettier": "^2.3.2",
6968
"@types/reach__router": "^1.3.9",
7069
"@types/react": "^17.0.17",

packages/dev-utils/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"lodash": "^4.17.21",
3131
"loglevel": "^1.7.1",
3232
"markdown-toc": "^1.2.0",
33-
"node-sass": "^5.0.0",
3433
"npm-run-all": "^4.1.5",
3534
"postcss": "^8.3.6",
3635
"postcss-flexbugs-fixes": "^5.0.2",
@@ -39,6 +38,7 @@
3938
"pretty-ms": "^7.0.0",
4039
"prompts": "^2.4.1",
4140
"rimraf": "^3.0.2",
41+
"sass": "^1.37.5",
4242
"sassdoc": "^2.7.2",
4343
"ts-morph": "^11.0.3",
4444
"typedoc": "^0.21.5",
@@ -49,6 +49,7 @@
4949
"@types/cssnano": "^4.0.1",
5050
"@types/he": "^1.1.2",
5151
"@types/prompts": "^2.0.14",
52+
"@types/sass": "^1.16.1",
5253
"chokidar-cli": "^3.0.0"
5354
}
5455
}

packages/dev-utils/src/sandbox/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const DEV_DEPENDENCIES = [
3434
"@types/node",
3535
"@types/react",
3636
"@types/react-dom",
37-
"node-sass",
37+
"sass",
3838
"react-scripts",
3939
"typescript",
4040
];

0 commit comments

Comments
 (0)