Skip to content

Commit

Permalink
feat: expose readFile API
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Jul 20, 2022
1 parent 7a3e15a commit ef7b6ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/modules/file.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { getAddonPaths, resolveAddon } from '../../src/main/lib/addon'
import { useFile, useJSONFile, useYAMLFile } from '../../src/main/utils/compositions'
import { userFile } from '../../src/main/utils/directory'
import { readFile } from '../../src/main/utils/file'

export * from '../shim'

export {
userFile,
readFile,
useFile,
useJSONFile,
useYAMLFile,
Expand Down
2 changes: 1 addition & 1 deletion build/build-git.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import getAddons from './utils/get-addons.mjs'
import getVersions from './utils/get-versions.mjs'

async function getModifiedFiles() {
const { stdout: files } = await execa(`git ls-files --modified`)
const { stdout: files } = await execa(`git ls-files --modified --others --exclude-standard`)
return files.trim().split('\n')
}

Expand Down

0 comments on commit ef7b6ec

Please sign in to comment.