Skip to content

Commit

Permalink
chore: remove todos (#891)
Browse files Browse the repository at this point in the history
* chore: remove todos

* chore: yarn

---------

Co-authored-by: Kai Vandivier <[email protected]>
  • Loading branch information
kabaros and KaiVandivier authored Nov 7, 2024
1 parent 4543f45 commit e123d22
Show file tree
Hide file tree
Showing 3 changed files with 573 additions and 774 deletions.
1 change: 0 additions & 1 deletion cli/src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const handler = async ({
pack: packAppOutput,
allowJsxInJs,
}) => {
// todo: we need to infer TypeScript in build command here similar to start
const paths = makePaths(cwd)

mode = mode || (dev && 'development') || getNodeEnv() || 'production'
Expand Down
4 changes: 2 additions & 2 deletions cli/src/lib/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = (cwd = process.cwd(), { typeScript } = {}) => {
package: path.join(base, './package.json'),
yarnLock: findYarnLock(base, rootDirectory),
dotenv: path.join(base, './.env'),
config: path.join(base, './d2.config.js'), // TODO: double check this works
config: path.join(base, './d2.config.js'),
readme: path.join(base, './README.md'),
src: path.join(base, './src'),
public: path.join(base, './public'),
Expand All @@ -109,7 +109,7 @@ module.exports = (cwd = process.cwd(), { typeScript } = {}) => {
'./.d2/shell/src/plugin.index.jsx'
),
shellPluginEntrypoint: path.join(base, './.d2/shell/src/Plugin.jsx'),
// TODO: look at what to do with service-worker files whether to move to TS or not

shellSrcServiceWorker: path.join(
base,
'./.d2/shell/src/service-worker.js'
Expand Down
Loading

0 comments on commit e123d22

Please sign in to comment.