Skip to content

Commit a784eb6

Browse files
Update Knip configuration and package.json scripts for improved path consistency
- Adjusted Knip configuration to point to the correct test and script directories within the packages/react-on-rails structure. - Updated package.json scripts to use relative paths for release commands, ensuring consistency across the workspace. These changes enhance the organization and clarity of the project structure.
1 parent 946698d commit a784eb6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

knip.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const config: KnipConfig = {
2121
],
2222
project: [
2323
'packages/react-on-rails/src/**/*.[jt]s{x,}!',
24-
'node_package/tests/**/*.[jt]s{x,}',
24+
'packages/react-on-rails/tests/**/*.[jt]s{x,}',
2525
'!react_on_rails_pro/**',
2626
'!packages/react-on-rails/lib/**',
2727
],
@@ -45,7 +45,9 @@ const config: KnipConfig = {
4545
// Knip fails to detect it's declared in devDependencies
4646
'nps',
4747
// local scripts
48-
'node_package/scripts/.*',
48+
'packages/react-on-rails/scripts/.*',
49+
// Has to be installed globally
50+
'yalc',
4951
],
5052
ignoreDependencies: [
5153
// Required for TypeScript compilation, but we don't depend on Turbolinks itself.

packages/react-on-rails/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"prepublishOnly": "yarn run build",
1616
"yalc:publish": "yalc publish",
1717
"yalc": "yalc",
18-
"release:patch": "scripts/release patch",
19-
"release:minor": "scripts/release minor",
20-
"release:major": "scripts/release major"
18+
"release:patch": "./scripts/release patch",
19+
"release:minor": "./scripts/release minor",
20+
"release:major": "./scripts/release major"
2121
},
2222
"repository": {
2323
"type": "git",

0 commit comments

Comments
 (0)