File tree Expand file tree Collapse file tree 1 file changed +47
-40
lines changed Expand file tree Collapse file tree 1 file changed +47
-40
lines changed Original file line number Diff line number Diff line change 1
1
export default {
2
- color : true ,
3
- format : "esm" ,
4
- metafile : true ,
5
- minify : true ,
6
- outdir : "Target" ,
7
- platform : "node" ,
8
- target : "esnext" ,
9
- write : true ,
10
- logLevel : "debug" ,
11
- plugins : [
12
- {
13
- name : "Target" ,
14
- setup ( { onStart, initialOptions : { outdir } } ) {
15
- onStart ( async ( ) => {
16
- try {
17
- outdir
18
- ? await ( await import ( "fs/promises" ) ) . rm ( outdir , {
19
- recursive : true ,
20
- } )
21
- : { } ;
22
- }
23
- catch ( _Error ) {
24
- console . log ( _Error ) ;
25
- }
26
- } ) ;
27
- } ,
28
- } ,
29
- ( await import ( "esbuild-plugin-copy" ) ) . copy ( {
30
- resolveFrom : "out" ,
31
- assets : [
32
- {
33
- from : "./Source/Notation/biome.json" ,
34
- to : "./Notation/" ,
35
- } ,
36
- ] ,
37
- } ) ,
38
- ] ,
39
- define : {
40
- "process.env.VERSION_PACKAGE" : `'${ ( await ( await import ( "typescript-esbuild/Target/Function/JSON.js" ) ) . default ( "package.json" ) ) ?. version } '` ,
41
- } ,
2
+ color : true ,
3
+ format : "esm" ,
4
+ metafile : true ,
5
+ minify : true ,
6
+ outdir : "Target" ,
7
+ platform : "node" ,
8
+ target : "esnext" ,
9
+ write : true ,
10
+ logLevel : "debug" ,
11
+ plugins : [
12
+ {
13
+ name : "Target" ,
14
+ setup ( { onStart, initialOptions : { outdir } } ) {
15
+ onStart ( async ( ) => {
16
+ try {
17
+ outdir
18
+ ? await (
19
+ await import ( "fs/promises" )
20
+ ) . rm ( outdir , {
21
+ recursive : true ,
22
+ } )
23
+ : { } ;
24
+ } catch ( _Error ) {
25
+ console . log ( _Error ) ;
26
+ }
27
+ } ) ;
28
+ } ,
29
+ } ,
30
+ ( await import ( "esbuild-plugin-copy" ) ) . copy ( {
31
+ resolveFrom : "out" ,
32
+ assets : [
33
+ {
34
+ from : "./Source/Notation/biome.json" ,
35
+ to : "./Notation/" ,
36
+ } ,
37
+ ] ,
38
+ } ) ,
39
+ ] ,
40
+ define : {
41
+ "process.env.VERSION_PACKAGE" : `'${
42
+ (
43
+ await (
44
+ await import ( "typescript-esbuild/Target/Function/JSON.js" )
45
+ ) . default ( "package.json" )
46
+ ) ?. version
47
+ } '`,
48
+ } ,
42
49
} ;
You can’t perform that action at this time.
0 commit comments