You can provide deno specific implementation of some files.
Let's say you have a src/lib/hash.tsarrow-up-right file in your project if you put a src/lib/hash.deno.tsarrow-up-right file alongside it Denoify will copy src/lib/hash.deno.tsarrow-up-right into deno_dist/lib/hash.tsarrow-up-right and ignore src/lib/hash.tsarrow-up-right.
src/lib/hash.ts
src/lib/hash.deno.ts
Don't forget to ignore the src/**/*.deno.ts files in your tsconfig.jsonarrow-up-right.
src/**/*.deno.ts
tsconfig.json
That's all you need to know. π
Last updated 3 years ago
Was this helpful?