File tree Expand file tree Collapse file tree 11 files changed +22606
-19350
lines changed
Expand file tree Collapse file tree 11 files changed +22606
-19350
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22. " $( dirname " $0 " ) /_/husky.sh"
33
4- yarn commitlint --edit $1
4+ npx commitlint --edit $1
Original file line number Diff line number Diff line change 11#! /bin/sh
22. " $( dirname " $0 " ) /_/husky.sh"
33
4- yarn lint-staged
4+ npx lint-staged
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,23 +2,23 @@ import { execSync } from "child_process";
22
33describe ( "cli" , ( ) => {
44 it ( "should run when no files are found" , ( ) => {
5- const result = execSync ( "yarn typed-scss-modules src" ) . toString ( ) ;
5+ const result = execSync ( "npm run typed-scss-modules src" ) . toString ( ) ;
66
77 expect ( result ) . toContain ( "No files found." ) ;
88 } ) ;
99
1010 describe ( "examples" , ( ) => {
1111 it ( "should run the basic example without errors" , ( ) => {
1212 const result = execSync (
13- `yarn typed-scss-modules "examples/basic/**/*.scss" --includePaths examples/basic/core --aliases.~alias variables --banner '// example banner'`
13+ `npm run typed-scss-modules "examples/basic/**/*.scss" --includePaths examples/basic/core --aliases.~alias variables --banner '// example banner'`
1414 ) . toString ( ) ;
1515
1616 expect ( result ) . toContain ( "Found 3 files. Generating type definitions..." ) ;
1717 } ) ;
1818
1919 it ( "should run the default-export example without errors" , ( ) => {
2020 const result = execSync (
21- `yarn typed-scss-modules "examples/default-export/**/*.scss" --exportType default --nameFormat kebab --banner '// example banner'`
21+ `npm run typed-scss-modules "examples/default-export/**/*.scss" --exportType default --nameFormat kebab --banner '// example banner'`
2222 ) . toString ( ) ;
2323
2424 expect ( result ) . toContain ( "Found 1 file. Generating type definitions..." ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This example contains:
88The command to generate the proper type files would look like this (_ in the root of this repository_ ):
99
1010``` bash
11- yarn typed-scss-modules " examples/basic/**/*.scss" --includePaths examples/basic/core --aliases.~alias variables --banner " // example banner"
11+ npm run typed-scss-modules " examples/basic/**/*.scss" --includePaths examples/basic/core --aliases.~alias variables --banner " // example banner"
1212```
1313
1414- The glob pattern is wrapped in quotes to pass it as a string and avoid executing.
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ This example contains:
77The command to generate the proper type files would look like this (_ in the root of this example, not repository_ ):
88
99``` bash
10- yarn typed-scss-modules " ./**/*.scss"
10+ npm run typed-scss-modules " ./**/*.scss"
1111```
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ This example contains:
88The command to generate the proper type files would look like this (_ in the root of this repository_ ):
99
1010``` bash
11- yarn typed-scss-modules " examples/default-export/**/*.scss" --exportType default --nameFormat kebab
11+ npm run typed-scss-modules " examples/default-export/**/*.scss" --exportType default --nameFormat kebab
1212```
You can’t perform that action at this time.
0 commit comments