File tree Expand file tree Collapse file tree 5 files changed +13651
-4295
lines changed Expand file tree Collapse file tree 5 files changed +13651
-4295
lines changed Original file line number Diff line number Diff line change
1
+ kind : template
2
+ load : nodePackagePublishToNpm.jsonnet
3
+ data :
4
+ node : 21
Original file line number Diff line number Diff line change
1
+ import esbuild from 'esbuild' ;
2
+ import clear from 'esbuild-plugin-clear' ;
3
+ import time from 'esbuild-plugin-time' ;
4
+ import { dirname } from 'path' ;
5
+ import { fileURLToPath } from 'url' ;
6
+
7
+ const __dirname = dirname ( fileURLToPath ( import . meta. url ) ) ;
8
+
9
+
10
+ esbuild . build ( {
11
+ entryPoints : [ './src/index.js' ] ,
12
+ bundle : true ,
13
+ minify : true ,
14
+ sourcemap : false ,
15
+ target : [ 'esnext' ] ,
16
+ format : 'esm' ,
17
+ legalComments : 'none' ,
18
+ outfile : './dist/parser.js' ,
19
+ plugins : [
20
+ clear ( './dist' ) ,
21
+ time ( ) ,
22
+ ] ,
23
+ } ) ;
24
+
25
+ esbuild . build ( {
26
+ entryPoints : [ './src/simple.js' ] ,
27
+ bundle : true ,
28
+ minify : true ,
29
+ sourcemap : false ,
30
+ target : [ 'esnext' ] ,
31
+ format : 'esm' ,
32
+ legalComments : 'none' ,
33
+ outfile : './dist/simple.js' ,
34
+ plugins : [
35
+ time ( ) ,
36
+ ] ,
37
+ } ) ;
You can’t perform that action at this time.
0 commit comments