fs#realpathSync TypeScript Examples
The following examples show how to use
fs#realpathSync.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: hardhat.config.ts From hoprnet with GNU General Public License v3.0 | 6 votes |
subtask('flat:get-dependency-graph')
.addOptionalParam('files', undefined, undefined, types.any)
.setAction(async ({ files }, { run }) => {
const sourcePaths =
files === undefined ? await run('compile:solidity:get-source-paths') : files.map((f: string) => realpathSync(f))
const sourceNames = await run('compile:solidity:get-source-names', {
sourcePaths
})
const dependencyGraph = await run('compile:solidity:get-dependency-graph', { sourceNames })
return dependencyGraph
})
Example #2
Source File: index.ts From serverless-import-config-plugin with MIT License | 5 votes |
REALPATH = realpathSync('.')