Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Dec 15, 2023
1 parent 80cc302 commit 330c270
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 48 deletions.
87 changes: 40 additions & 47 deletions Configuration/ESBuild.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,42 @@
export default {
color: true,
format: "esm",
metafile: true,
minify: true,
outdir: "Target",
platform: "node",
target: "esnext",
write: true,
logLevel: "debug",
plugins: [
{
name: "Target",
setup({ onStart, initialOptions: { outdir } }) {
onStart(async () => {
try {
outdir
? await (
await import("fs/promises")
).rm(outdir, {
recursive: true,
})
: {};
} catch (_Error) {
console.log(_Error);
}
});
},
},
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/Notation/biome.json",
to: "./Notation/",
},
],
}),
],
define: {
"process.env.VERSION_PACKAGE": `'${
(
await (
await import("typescript-esbuild/Target/Function/JSON.js")
).default("package.json")
)?.version
}'`,
},
color: true,
format: "esm",
metafile: true,
minify: true,
outdir: "Target",
platform: "node",
target: "esnext",
write: true,
logLevel: "debug",
plugins: [
{
name: "Target",
setup({ onStart, initialOptions: { outdir } }) {
onStart(async () => {
try {
outdir
? await (await import("fs/promises")).rm(outdir, {
recursive: true,
})
: {};
}
catch (_Error) {
console.log(_Error);
}
});
},
},
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/Notation/biome.json",
to: "./Notation/",
},
],
}),
],
define: {
"process.env.VERSION_PACKAGE": `'${(await (await import("typescript-esbuild/Target/Function/JSON.js")).default("package.json"))?.version}'`,
},
};
2 changes: 1 addition & 1 deletion Target/Variable/Option.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 330c270

Please sign in to comment.