diff --git a/scripts/cli.js b/scripts/cli.js index 32a5a4b3..06e4f3d2 100644 --- a/scripts/cli.js +++ b/scripts/cli.js @@ -220,7 +220,7 @@ function selectLesson() { const aliasBasePath = `${courseAppNames[selectedCourse]}` fs.readdirSync(lessonPath).forEach((file) => { const name = path.basename(file).replace(/\.(js|ts|tsx)$/, '') - alias[path.join(aliasBasePath, name)] = path.join(lessonPath, file) + alias[`${aliasBasePath}/${name}`] = path.join(lessonPath, file) }) return { diff --git a/tsconfig.json b/tsconfig.json index 73d6dc21..3b8d0049 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,5 @@ { - // For lessons, TypeScript will use tsconfig.dev.json which is auto generated - // on each launch of a lesson to adjust includes to be specific for the - // lesson. Both extend tsconfig.base.json, but we need the file that VS Code - // uses for intellisense to use the tsconfig.json filename so that files in - // the courses don't show a bunch of errors. + "__comment__": "Used by VSCode intellisense and needed to prevent course file errors", "extends": "./tsconfig.base.json", "include": ["apps", "types", "__mocks__/@types", "courses"] }