Skip to content

Commit 3cead3c

Browse files
authored
refactor: add node-sass instead of nativescript-dev-sass (#229)
1 parent 1db4de7 commit 3cead3c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/styling/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export default function(options: StylingOptions) {
3030
options.extension === 'scss' ?
3131
(tree: Tree) => {
3232
const sassDependency: NodeDependency = {
33-
name: 'nativescript-dev-sass',
34-
version: '~1.6.0',
33+
name: 'node-sass',
34+
version: '^4.7.1',
3535
type: 'devDependency',
3636
};
3737

src/styling/index_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Styling Schematic', () => {
5252
const tree = schematicRunner.runSchematic('styling', options, appTree);
5353

5454
const content = getFileContent(tree, `${appPath}/package.json`);
55-
expect(content).not.toMatch('"nativescript-dev-sass": ');
55+
expect(content).not.toMatch('"node-sass": ');
5656
});
5757

5858
it('should handle the theme flag', () => {
@@ -96,7 +96,7 @@ describe('Styling Schematic', () => {
9696
const tree = schematicRunner.runSchematic('styling', options, appTree);
9797

9898
const content = getFileContent(tree, `${appPath}/package.json`);
99-
expect(content).toMatch('"nativescript-dev-sass": ');
99+
expect(content).toMatch('"node-sass": ');
100100
});
101101

102102
it('should handle the theme flag', () => {

0 commit comments

Comments
 (0)