Skip to content

Commit a92db84

Browse files
committed
docs: fix passing options to cli
1 parent 3ce71ad commit a92db84

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

__tests__/cli.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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...");

examples/basic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This example contains:
88
The 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.

examples/default-export/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ This example contains:
88
The 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
```

0 commit comments

Comments
 (0)