Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transpile then copy? #102

Open
pthieu opened this issue May 24, 2023 · 1 comment
Open

Transpile then copy? #102

pthieu opened this issue May 24, 2023 · 1 comment

Comments

@pthieu
Copy link

pthieu commented May 24, 2023

I would like to transpile my TS files into JS and then use the copy plugin to copy it over to the output folder.

Currently the copy works well, I have the current build step config

await build({
  entryPoints: ['src/index.ts'],
  bundle: true,
  minify: true,
  platform: 'node',
  outfile: 'dist/app.js',
  plugins: [
    copy({
      resolveFrom: 'cwd',
      assets: {
        from: ['./src/db/migrations/*'],
        to: ['./dist/db/migrations/'],
      },
      watch: true,
    }),
  ],
});

I'm looking for a way to add the transpile step on top.

@pthieu
Copy link
Author

pthieu commented May 24, 2023

Nevermind, I added a 2nd build step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant