Skip to content

Commit ad6bc25

Browse files
committed
refactor: rename examples to extras and update related references
1 parent 375944d commit ad6bc25

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

epicshop/fix.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const VERBOSE = false
1212
const logVerbose = (...args) => (VERBOSE ? console.log(...args) : undefined)
1313

1414
const workshopRoot = here('..')
15-
const examples = (await readDir(here('../examples'))).map((dir) =>
16-
here(`../examples/${dir}`),
15+
const extras = (await readDir(here('../extra'))).map((dir) =>
16+
here(`../extra/${dir}`),
1717
)
1818
const exercises = (await readDir(here('../exercises')))
1919
.map((name) => here(`../exercises/${name}`))
@@ -29,12 +29,12 @@ const exerciseApps = (
2929
}),
3030
)
3131
).flat()
32-
const exampleApps = (await readDir(here('../examples'))).map((dir) =>
33-
here(`../examples/${dir}`),
32+
const extraApps = (await readDir(here('../extra'))).map((dir) =>
33+
here(`../extra/${dir}`),
3434
)
35-
const apps = [...exampleApps, ...exerciseApps]
35+
const apps = [...extraApps, ...exerciseApps]
3636

37-
const appsWithPkgJson = [...examples, ...apps].filter((app) => {
37+
const appsWithPkgJson = [...extras, ...apps].filter((app) => {
3838
const pkgjsonPath = path.join(app, 'package.json')
3939
return exists(pkgjsonPath)
4040
})

0 commit comments

Comments
 (0)