Skip to content

Commit b088eae

Browse files
bryanjtcskovy
authored andcommitted
build(npm): migrate to npm
1 parent 5efcc81 commit b088eae

File tree

11 files changed

+22606
-19350
lines changed

11 files changed

+22606
-19350
lines changed

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn commitlint --edit $1
4+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
npx lint-staged

.yarn/releases/yarn-3.4.1.cjs

Lines changed: 0 additions & 873 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

__tests__/cli.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ import { execSync } from "child_process";
22

33
describe("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...");

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-
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.

examples/config-file/README.md

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

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-
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
```

0 commit comments

Comments
 (0)