-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ipeleg
committed
Sep 14, 2023
1 parent
a63afa5
commit 5cce7df
Showing
12 changed files
with
183 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/common/sca/reachability/examples/babel/babel_config/babel.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"plugins": [ | ||
["module-resolver", { | ||
"alias": { | ||
"ax": "axios" | ||
} | ||
}] | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/common/sca/reachability/examples/babel/babelrc/.babelrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"plugins": [ | ||
["module-resolver", { | ||
"alias": { | ||
"ax": "axios" | ||
} | ||
}] | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/common/sca/reachability/examples/fake_file/fake.babel.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"plugins": [ | ||
["module-resolver", { | ||
"alias": { | ||
"ax": "axios" | ||
} | ||
}] | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/common/sca/reachability/examples/package_json/package_json_with_alias/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"alias": { | ||
"ax": "axios" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/common/sca/reachability/examples/package_json/package_json_with_aliasify/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"aliasify": { | ||
"aliases": { | ||
"ax": "axios" | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/common/sca/reachability/examples/rollup/rollup.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import alias from '@rollup/plugin-alias'; | ||
|
||
export default { | ||
plugins: [ | ||
alias({ | ||
entries: [ | ||
{ find: 'ax', replacement: 'axios' } | ||
] | ||
}) | ||
] | ||
}; |
5 changes: 5 additions & 0 deletions
5
tests/common/sca/reachability/examples/snowpack/snowpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
alias: { | ||
"ax": "axios" | ||
} | ||
}; |
8 changes: 8 additions & 0 deletions
8
tests/common/sca/reachability/examples/tsconfig/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"ax": ["node_modules/axios"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
resolve: { | ||
alias: { | ||
"ax": "axios" | ||
} | ||
} | ||
}; |
7 changes: 7 additions & 0 deletions
7
tests/common/sca/reachability/examples/webpack/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
resolve: { | ||
alias: { | ||
ax: 'axios' | ||
} | ||
} | ||
}; |
Oops, something went wrong.