File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ describe("cli", () => {
1010 describe ( "examples" , ( ) => {
1111 it ( "should run the basic example without errors" , ( ) => {
1212 const result = execSync (
13- `npm run 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- `npm run 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- npm run 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 @@ -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- npm run 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 --banner ' // example banner '
1212```
You can’t perform that action at this time.
0 commit comments