@mrgrain/cdk-esbuild 3.4.0 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/.jsii +86 -38
- package/.projenrc.ts +23 -18
- package/API.md +24 -0
- package/CHANGELOG.md +380 -0
- package/lib/asset.js +4 -5
- package/lib/bundler.js +8 -12
- package/lib/code.js +6 -7
- package/lib/esbuild-types.d.ts +2 -0
- package/lib/esbuild-types.js +1 -1
- package/lib/inline-code.js +4 -4
- package/lib/source.js +2 -2
- package/package.json +21 -13
- package/releasetag.txt +0 -1
- package/version.txt +0 -1
package/.gitattributes
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
/.github/pull_request_template.md linguist-generated
|
|
7
7
|
/.github/workflows/build.yml linguist-generated
|
|
8
8
|
/.github/workflows/pull-request-lint.yml linguist-generated
|
|
9
|
+
/.github/workflows/release.yml linguist-generated
|
|
9
10
|
/.gitignore linguist-generated
|
|
10
11
|
/.mergify.yml linguist-generated
|
|
11
12
|
/.npmignore linguist-generated
|
package/.jsii
CHANGED
|
@@ -2777,7 +2777,7 @@
|
|
|
2777
2777
|
"stability": "stable"
|
|
2778
2778
|
},
|
|
2779
2779
|
"homepage": "https://github.com/mrgrain/cdk-esbuild",
|
|
2780
|
-
"jsiiVersion": "1.
|
|
2780
|
+
"jsiiVersion": "1.60.1 (build 2799dc8)",
|
|
2781
2781
|
"keywords": [
|
|
2782
2782
|
"aws-cdk",
|
|
2783
2783
|
"bundler",
|
|
@@ -2804,12 +2804,16 @@
|
|
|
2804
2804
|
},
|
|
2805
2805
|
"repository": {
|
|
2806
2806
|
"type": "git",
|
|
2807
|
-
"url": "
|
|
2807
|
+
"url": "https://github.com/mrgrain/cdk-esbuild"
|
|
2808
2808
|
},
|
|
2809
2809
|
"schema": "jsii/0.10.0",
|
|
2810
2810
|
"targets": {
|
|
2811
2811
|
"js": {
|
|
2812
2812
|
"npm": "@mrgrain/cdk-esbuild"
|
|
2813
|
+
},
|
|
2814
|
+
"python": {
|
|
2815
|
+
"distName": "mrgrain.cdk-esbuild",
|
|
2816
|
+
"module": "mrgrain.cdk_esbuild"
|
|
2813
2817
|
}
|
|
2814
2818
|
},
|
|
2815
2819
|
"types": {
|
|
@@ -2900,7 +2904,7 @@
|
|
|
2900
2904
|
"kind": "interface",
|
|
2901
2905
|
"locationInModule": {
|
|
2902
2906
|
"filename": "src/esbuild-types.ts",
|
|
2903
|
-
"line":
|
|
2907
|
+
"line": 76
|
|
2904
2908
|
},
|
|
2905
2909
|
"name": "BuildOptions",
|
|
2906
2910
|
"properties": [
|
|
@@ -2913,7 +2917,7 @@
|
|
|
2913
2917
|
"immutable": true,
|
|
2914
2918
|
"locationInModule": {
|
|
2915
2919
|
"filename": "src/esbuild-types.ts",
|
|
2916
|
-
"line":
|
|
2920
|
+
"line": 128
|
|
2917
2921
|
},
|
|
2918
2922
|
"name": "absWorkingDir",
|
|
2919
2923
|
"optional": true,
|
|
@@ -2930,7 +2934,7 @@
|
|
|
2930
2934
|
"immutable": true,
|
|
2931
2935
|
"locationInModule": {
|
|
2932
2936
|
"filename": "src/esbuild-types.ts",
|
|
2933
|
-
"line":
|
|
2937
|
+
"line": 106
|
|
2934
2938
|
},
|
|
2935
2939
|
"name": "allowOverwrite",
|
|
2936
2940
|
"optional": true,
|
|
@@ -2947,7 +2951,7 @@
|
|
|
2947
2951
|
"immutable": true,
|
|
2948
2952
|
"locationInModule": {
|
|
2949
2953
|
"filename": "src/esbuild-types.ts",
|
|
2950
|
-
"line":
|
|
2954
|
+
"line": 118
|
|
2951
2955
|
},
|
|
2952
2956
|
"name": "assetNames",
|
|
2953
2957
|
"optional": true,
|
|
@@ -2964,7 +2968,7 @@
|
|
|
2964
2968
|
"immutable": true,
|
|
2965
2969
|
"locationInModule": {
|
|
2966
2970
|
"filename": "src/esbuild-types.ts",
|
|
2967
|
-
"line":
|
|
2971
|
+
"line": 122
|
|
2968
2972
|
},
|
|
2969
2973
|
"name": "banner",
|
|
2970
2974
|
"optional": true,
|
|
@@ -2986,7 +2990,7 @@
|
|
|
2986
2990
|
"immutable": true,
|
|
2987
2991
|
"locationInModule": {
|
|
2988
2992
|
"filename": "src/esbuild-types.ts",
|
|
2989
|
-
"line":
|
|
2993
|
+
"line": 78
|
|
2990
2994
|
},
|
|
2991
2995
|
"name": "bundle",
|
|
2992
2996
|
"optional": true,
|
|
@@ -3020,7 +3024,7 @@
|
|
|
3020
3024
|
"immutable": true,
|
|
3021
3025
|
"locationInModule": {
|
|
3022
3026
|
"filename": "src/esbuild-types.ts",
|
|
3023
|
-
"line":
|
|
3027
|
+
"line": 116
|
|
3024
3028
|
},
|
|
3025
3029
|
"name": "chunkNames",
|
|
3026
3030
|
"optional": true,
|
|
@@ -3054,7 +3058,7 @@
|
|
|
3054
3058
|
"immutable": true,
|
|
3055
3059
|
"locationInModule": {
|
|
3056
3060
|
"filename": "src/esbuild-types.ts",
|
|
3057
|
-
"line":
|
|
3061
|
+
"line": 102
|
|
3058
3062
|
},
|
|
3059
3063
|
"name": "conditions",
|
|
3060
3064
|
"optional": true,
|
|
@@ -3120,7 +3124,7 @@
|
|
|
3120
3124
|
"immutable": true,
|
|
3121
3125
|
"locationInModule": {
|
|
3122
3126
|
"filename": "src/esbuild-types.ts",
|
|
3123
|
-
"line":
|
|
3127
|
+
"line": 114
|
|
3124
3128
|
},
|
|
3125
3129
|
"name": "entryNames",
|
|
3126
3130
|
"optional": true,
|
|
@@ -3137,7 +3141,7 @@
|
|
|
3137
3141
|
"immutable": true,
|
|
3138
3142
|
"locationInModule": {
|
|
3139
3143
|
"filename": "src/esbuild-types.ts",
|
|
3140
|
-
"line":
|
|
3144
|
+
"line": 94
|
|
3141
3145
|
},
|
|
3142
3146
|
"name": "external",
|
|
3143
3147
|
"optional": true,
|
|
@@ -3159,7 +3163,7 @@
|
|
|
3159
3163
|
"immutable": true,
|
|
3160
3164
|
"locationInModule": {
|
|
3161
3165
|
"filename": "src/esbuild-types.ts",
|
|
3162
|
-
"line":
|
|
3166
|
+
"line": 124
|
|
3163
3167
|
},
|
|
3164
3168
|
"name": "footer",
|
|
3165
3169
|
"optional": true,
|
|
@@ -3232,7 +3236,7 @@
|
|
|
3232
3236
|
"immutable": true,
|
|
3233
3237
|
"locationInModule": {
|
|
3234
3238
|
"filename": "src/esbuild-types.ts",
|
|
3235
|
-
"line":
|
|
3239
|
+
"line": 126
|
|
3236
3240
|
},
|
|
3237
3241
|
"name": "incremental",
|
|
3238
3242
|
"optional": true,
|
|
@@ -3249,7 +3253,7 @@
|
|
|
3249
3253
|
"immutable": true,
|
|
3250
3254
|
"locationInModule": {
|
|
3251
3255
|
"filename": "src/esbuild-types.ts",
|
|
3252
|
-
"line":
|
|
3256
|
+
"line": 120
|
|
3253
3257
|
},
|
|
3254
3258
|
"name": "inject",
|
|
3255
3259
|
"optional": true,
|
|
@@ -3356,7 +3360,7 @@
|
|
|
3356
3360
|
"immutable": true,
|
|
3357
3361
|
"locationInModule": {
|
|
3358
3362
|
"filename": "src/esbuild-types.ts",
|
|
3359
|
-
"line":
|
|
3363
|
+
"line": 96
|
|
3360
3364
|
},
|
|
3361
3365
|
"name": "loader",
|
|
3362
3366
|
"optional": true,
|
|
@@ -3403,6 +3407,28 @@
|
|
|
3403
3407
|
"primitive": "number"
|
|
3404
3408
|
}
|
|
3405
3409
|
},
|
|
3410
|
+
{
|
|
3411
|
+
"abstract": true,
|
|
3412
|
+
"docs": {
|
|
3413
|
+
"stability": "stable",
|
|
3414
|
+
"summary": "Documentation: https://esbuild.github.io/api/#log-override."
|
|
3415
|
+
},
|
|
3416
|
+
"immutable": true,
|
|
3417
|
+
"locationInModule": {
|
|
3418
|
+
"filename": "src/esbuild-types.ts",
|
|
3419
|
+
"line": 73
|
|
3420
|
+
},
|
|
3421
|
+
"name": "logOverride",
|
|
3422
|
+
"optional": true,
|
|
3423
|
+
"type": {
|
|
3424
|
+
"collection": {
|
|
3425
|
+
"elementtype": {
|
|
3426
|
+
"primitive": "string"
|
|
3427
|
+
},
|
|
3428
|
+
"kind": "map"
|
|
3429
|
+
}
|
|
3430
|
+
}
|
|
3431
|
+
},
|
|
3406
3432
|
{
|
|
3407
3433
|
"abstract": true,
|
|
3408
3434
|
"docs": {
|
|
@@ -3412,7 +3438,7 @@
|
|
|
3412
3438
|
"immutable": true,
|
|
3413
3439
|
"locationInModule": {
|
|
3414
3440
|
"filename": "src/esbuild-types.ts",
|
|
3415
|
-
"line":
|
|
3441
|
+
"line": 100
|
|
3416
3442
|
},
|
|
3417
3443
|
"name": "mainFields",
|
|
3418
3444
|
"optional": true,
|
|
@@ -3499,7 +3525,7 @@
|
|
|
3499
3525
|
"immutable": true,
|
|
3500
3526
|
"locationInModule": {
|
|
3501
3527
|
"filename": "src/esbuild-types.ts",
|
|
3502
|
-
"line":
|
|
3528
|
+
"line": 86
|
|
3503
3529
|
},
|
|
3504
3530
|
"name": "metafile",
|
|
3505
3531
|
"optional": true,
|
|
@@ -3584,7 +3610,7 @@
|
|
|
3584
3610
|
"immutable": true,
|
|
3585
3611
|
"locationInModule": {
|
|
3586
3612
|
"filename": "src/esbuild-types.ts",
|
|
3587
|
-
"line":
|
|
3613
|
+
"line": 130
|
|
3588
3614
|
},
|
|
3589
3615
|
"name": "nodePaths",
|
|
3590
3616
|
"optional": true,
|
|
@@ -3606,7 +3632,7 @@
|
|
|
3606
3632
|
"immutable": true,
|
|
3607
3633
|
"locationInModule": {
|
|
3608
3634
|
"filename": "src/esbuild-types.ts",
|
|
3609
|
-
"line":
|
|
3635
|
+
"line": 90
|
|
3610
3636
|
},
|
|
3611
3637
|
"name": "outbase",
|
|
3612
3638
|
"optional": true,
|
|
@@ -3623,7 +3649,7 @@
|
|
|
3623
3649
|
"immutable": true,
|
|
3624
3650
|
"locationInModule": {
|
|
3625
3651
|
"filename": "src/esbuild-types.ts",
|
|
3626
|
-
"line":
|
|
3652
|
+
"line": 88
|
|
3627
3653
|
},
|
|
3628
3654
|
"name": "outdir",
|
|
3629
3655
|
"optional": true,
|
|
@@ -3640,7 +3666,7 @@
|
|
|
3640
3666
|
"immutable": true,
|
|
3641
3667
|
"locationInModule": {
|
|
3642
3668
|
"filename": "src/esbuild-types.ts",
|
|
3643
|
-
"line":
|
|
3669
|
+
"line": 110
|
|
3644
3670
|
},
|
|
3645
3671
|
"name": "outExtension",
|
|
3646
3672
|
"optional": true,
|
|
@@ -3662,7 +3688,7 @@
|
|
|
3662
3688
|
"immutable": true,
|
|
3663
3689
|
"locationInModule": {
|
|
3664
3690
|
"filename": "src/esbuild-types.ts",
|
|
3665
|
-
"line":
|
|
3691
|
+
"line": 84
|
|
3666
3692
|
},
|
|
3667
3693
|
"name": "outfile",
|
|
3668
3694
|
"optional": true,
|
|
@@ -3679,7 +3705,7 @@
|
|
|
3679
3705
|
"immutable": true,
|
|
3680
3706
|
"locationInModule": {
|
|
3681
3707
|
"filename": "src/esbuild-types.ts",
|
|
3682
|
-
"line":
|
|
3708
|
+
"line": 92
|
|
3683
3709
|
},
|
|
3684
3710
|
"name": "platform",
|
|
3685
3711
|
"optional": true,
|
|
@@ -3696,7 +3722,7 @@
|
|
|
3696
3722
|
"immutable": true,
|
|
3697
3723
|
"locationInModule": {
|
|
3698
3724
|
"filename": "src/esbuild-types.ts",
|
|
3699
|
-
"line":
|
|
3725
|
+
"line": 82
|
|
3700
3726
|
},
|
|
3701
3727
|
"name": "preserveSymlinks",
|
|
3702
3728
|
"optional": true,
|
|
@@ -3713,7 +3739,7 @@
|
|
|
3713
3739
|
"immutable": true,
|
|
3714
3740
|
"locationInModule": {
|
|
3715
3741
|
"filename": "src/esbuild-types.ts",
|
|
3716
|
-
"line":
|
|
3742
|
+
"line": 112
|
|
3717
3743
|
},
|
|
3718
3744
|
"name": "publicPath",
|
|
3719
3745
|
"optional": true,
|
|
@@ -3769,7 +3795,7 @@
|
|
|
3769
3795
|
"immutable": true,
|
|
3770
3796
|
"locationInModule": {
|
|
3771
3797
|
"filename": "src/esbuild-types.ts",
|
|
3772
|
-
"line":
|
|
3798
|
+
"line": 98
|
|
3773
3799
|
},
|
|
3774
3800
|
"name": "resolveExtensions",
|
|
3775
3801
|
"optional": true,
|
|
@@ -3851,7 +3877,7 @@
|
|
|
3851
3877
|
"immutable": true,
|
|
3852
3878
|
"locationInModule": {
|
|
3853
3879
|
"filename": "src/esbuild-types.ts",
|
|
3854
|
-
"line":
|
|
3880
|
+
"line": 80
|
|
3855
3881
|
},
|
|
3856
3882
|
"name": "splitting",
|
|
3857
3883
|
"optional": true,
|
|
@@ -3916,7 +3942,7 @@
|
|
|
3916
3942
|
"immutable": true,
|
|
3917
3943
|
"locationInModule": {
|
|
3918
3944
|
"filename": "src/esbuild-types.ts",
|
|
3919
|
-
"line":
|
|
3945
|
+
"line": 108
|
|
3920
3946
|
},
|
|
3921
3947
|
"name": "tsconfig",
|
|
3922
3948
|
"optional": true,
|
|
@@ -3933,7 +3959,7 @@
|
|
|
3933
3959
|
"immutable": true,
|
|
3934
3960
|
"locationInModule": {
|
|
3935
3961
|
"filename": "src/esbuild-types.ts",
|
|
3936
|
-
"line":
|
|
3962
|
+
"line": 104
|
|
3937
3963
|
},
|
|
3938
3964
|
"name": "write",
|
|
3939
3965
|
"optional": true,
|
|
@@ -4954,7 +4980,7 @@
|
|
|
4954
4980
|
"kind": "interface",
|
|
4955
4981
|
"locationInModule": {
|
|
4956
4982
|
"filename": "src/esbuild-types.ts",
|
|
4957
|
-
"line":
|
|
4983
|
+
"line": 237
|
|
4958
4984
|
},
|
|
4959
4985
|
"name": "TransformOptions",
|
|
4960
4986
|
"properties": [
|
|
@@ -4966,7 +4992,7 @@
|
|
|
4966
4992
|
"immutable": true,
|
|
4967
4993
|
"locationInModule": {
|
|
4968
4994
|
"filename": "src/esbuild-types.ts",
|
|
4969
|
-
"line":
|
|
4995
|
+
"line": 242
|
|
4970
4996
|
},
|
|
4971
4997
|
"name": "banner",
|
|
4972
4998
|
"optional": true,
|
|
@@ -5060,7 +5086,7 @@
|
|
|
5060
5086
|
"immutable": true,
|
|
5061
5087
|
"locationInModule": {
|
|
5062
5088
|
"filename": "src/esbuild-types.ts",
|
|
5063
|
-
"line":
|
|
5089
|
+
"line": 243
|
|
5064
5090
|
},
|
|
5065
5091
|
"name": "footer",
|
|
5066
5092
|
"optional": true,
|
|
@@ -5212,7 +5238,7 @@
|
|
|
5212
5238
|
"immutable": true,
|
|
5213
5239
|
"locationInModule": {
|
|
5214
5240
|
"filename": "src/esbuild-types.ts",
|
|
5215
|
-
"line":
|
|
5241
|
+
"line": 241
|
|
5216
5242
|
},
|
|
5217
5243
|
"name": "loader",
|
|
5218
5244
|
"optional": true,
|
|
@@ -5254,6 +5280,28 @@
|
|
|
5254
5280
|
"primitive": "number"
|
|
5255
5281
|
}
|
|
5256
5282
|
},
|
|
5283
|
+
{
|
|
5284
|
+
"abstract": true,
|
|
5285
|
+
"docs": {
|
|
5286
|
+
"stability": "stable",
|
|
5287
|
+
"summary": "Documentation: https://esbuild.github.io/api/#log-override."
|
|
5288
|
+
},
|
|
5289
|
+
"immutable": true,
|
|
5290
|
+
"locationInModule": {
|
|
5291
|
+
"filename": "src/esbuild-types.ts",
|
|
5292
|
+
"line": 73
|
|
5293
|
+
},
|
|
5294
|
+
"name": "logOverride",
|
|
5295
|
+
"optional": true,
|
|
5296
|
+
"type": {
|
|
5297
|
+
"collection": {
|
|
5298
|
+
"elementtype": {
|
|
5299
|
+
"primitive": "string"
|
|
5300
|
+
},
|
|
5301
|
+
"kind": "map"
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
},
|
|
5257
5305
|
{
|
|
5258
5306
|
"abstract": true,
|
|
5259
5307
|
"docs": {
|
|
@@ -5434,7 +5482,7 @@
|
|
|
5434
5482
|
"immutable": true,
|
|
5435
5483
|
"locationInModule": {
|
|
5436
5484
|
"filename": "src/esbuild-types.ts",
|
|
5437
|
-
"line":
|
|
5485
|
+
"line": 240
|
|
5438
5486
|
},
|
|
5439
5487
|
"name": "sourcefile",
|
|
5440
5488
|
"optional": true,
|
|
@@ -5558,7 +5606,7 @@
|
|
|
5558
5606
|
"immutable": true,
|
|
5559
5607
|
"locationInModule": {
|
|
5560
5608
|
"filename": "src/esbuild-types.ts",
|
|
5561
|
-
"line":
|
|
5609
|
+
"line": 238
|
|
5562
5610
|
},
|
|
5563
5611
|
"name": "tsconfigRaw",
|
|
5564
5612
|
"optional": true,
|
|
@@ -6092,6 +6140,6 @@
|
|
|
6092
6140
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
6093
6141
|
}
|
|
6094
6142
|
},
|
|
6095
|
-
"version": "
|
|
6096
|
-
"fingerprint": "
|
|
6143
|
+
"version": "4.0.0-alpha.1",
|
|
6144
|
+
"fingerprint": "RRGB0AM64iSFf53pXW95IzXOq3RDrC1T46uJeoedQZw="
|
|
6097
6145
|
}
|
package/.projenrc.ts
CHANGED
|
@@ -19,7 +19,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
19
19
|
|
|
20
20
|
// Project info
|
|
21
21
|
name: '@mrgrain/cdk-esbuild',
|
|
22
|
-
repositoryUrl: '
|
|
22
|
+
repositoryUrl: 'https://github.com/mrgrain/cdk-esbuild',
|
|
23
23
|
description:
|
|
24
24
|
'CDK constructs for esbuild, an extremely fast JavaScript bundler',
|
|
25
25
|
homepage: 'https://github.com/mrgrain/cdk-esbuild',
|
|
@@ -58,22 +58,21 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
58
58
|
eslintOptions: {
|
|
59
59
|
lintProjenRc: false,
|
|
60
60
|
dirs: ['src', 'projenrc', '.projenrc.ts'],
|
|
61
|
-
ignorePatterns: [
|
|
62
|
-
'*.js',
|
|
63
|
-
'*.d.ts',
|
|
64
|
-
'node_modules/',
|
|
65
|
-
'*.generated.ts',
|
|
66
|
-
'coverage',
|
|
67
|
-
'examples/',
|
|
68
|
-
],
|
|
69
61
|
},
|
|
70
62
|
|
|
71
63
|
// Release
|
|
72
64
|
packageManager: javascript.NodePackageManager.NPM,
|
|
73
|
-
npmDistTag: '
|
|
74
|
-
defaultReleaseBranch: '
|
|
75
|
-
majorVersion:
|
|
76
|
-
|
|
65
|
+
npmDistTag: 'next',
|
|
66
|
+
defaultReleaseBranch: 'support-other-langs',
|
|
67
|
+
majorVersion: 4,
|
|
68
|
+
prerelease: 'alpha',
|
|
69
|
+
releaseTrigger: release.ReleaseTrigger.scheduled({
|
|
70
|
+
schedule: '0 17 * * *', // doesn't matter
|
|
71
|
+
}),
|
|
72
|
+
publishToPypi: {
|
|
73
|
+
distName: 'mrgrain.cdk-esbuild',
|
|
74
|
+
module: 'mrgrain.cdk_esbuild',
|
|
75
|
+
},
|
|
77
76
|
catalog: {
|
|
78
77
|
twitter: '@mrgrain',
|
|
79
78
|
},
|
|
@@ -101,7 +100,6 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
101
100
|
'cdk.out',
|
|
102
101
|
'.cdk.staging',
|
|
103
102
|
'examples/template',
|
|
104
|
-
'!/.github/workflows/manual-release.yml',
|
|
105
103
|
'!/examples/**',
|
|
106
104
|
],
|
|
107
105
|
npmignore: [
|
|
@@ -119,6 +117,17 @@ const project = new awscdk.AwsCdkConstructLibrary({
|
|
|
119
117
|
],
|
|
120
118
|
});
|
|
121
119
|
|
|
120
|
+
// release only via manual trigger
|
|
121
|
+
project.tryFindObjectFile('.github/workflows/release.yml')?.addOverride('on', 'workflow_dispatch');
|
|
122
|
+
|
|
123
|
+
// eslint
|
|
124
|
+
project.eslint?.allowDevDeps('projenrc/**');
|
|
125
|
+
project.eslint?.addRules({
|
|
126
|
+
'@typescript-eslint/member-ordering': 'off',
|
|
127
|
+
});
|
|
128
|
+
project.eslint?.addIgnorePattern('examples/');
|
|
129
|
+
project.eslint?.addIgnorePattern('!projenrc/*.ts');
|
|
130
|
+
|
|
122
131
|
|
|
123
132
|
// VSCode config
|
|
124
133
|
new JsonFile(project, '.vscode/extensions.json', {
|
|
@@ -162,10 +171,6 @@ project.tryFindObjectFile('package.json')?.addOverride('optionalDependencies', {
|
|
|
162
171
|
esbuild: '^0.14.0',
|
|
163
172
|
});
|
|
164
173
|
|
|
165
|
-
project.eslint?.addRules({
|
|
166
|
-
'@typescript-eslint/member-ordering': 'off',
|
|
167
|
-
});
|
|
168
|
-
|
|
169
174
|
new TypeScriptSourceFile(project, 'src/esbuild-types.ts', {
|
|
170
175
|
source: 'node_modules/esbuild/lib/main.d.ts',
|
|
171
176
|
editGitignore: false,
|
package/API.md
CHANGED
|
@@ -446,6 +446,18 @@ Documentation: https://esbuild.github.io/api/#log-limit.
|
|
|
446
446
|
|
|
447
447
|
---
|
|
448
448
|
|
|
449
|
+
##### `logOverride`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.logOverride"></a>
|
|
450
|
+
|
|
451
|
+
```typescript
|
|
452
|
+
public readonly logOverride: {[ key: string ]: string};
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
- *Type:* {[ key: string ]: `string`}
|
|
456
|
+
|
|
457
|
+
Documentation: https://esbuild.github.io/api/#log-override.
|
|
458
|
+
|
|
459
|
+
---
|
|
460
|
+
|
|
449
461
|
##### `mainFields`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.mainFields"></a>
|
|
450
462
|
|
|
451
463
|
```typescript
|
|
@@ -1323,6 +1335,18 @@ Documentation: https://esbuild.github.io/api/#log-limit.
|
|
|
1323
1335
|
|
|
1324
1336
|
---
|
|
1325
1337
|
|
|
1338
|
+
##### `logOverride`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.logOverride"></a>
|
|
1339
|
+
|
|
1340
|
+
```typescript
|
|
1341
|
+
public readonly logOverride: {[ key: string ]: string};
|
|
1342
|
+
```
|
|
1343
|
+
|
|
1344
|
+
- *Type:* {[ key: string ]: `string`}
|
|
1345
|
+
|
|
1346
|
+
Documentation: https://esbuild.github.io/api/#log-override.
|
|
1347
|
+
|
|
1348
|
+
---
|
|
1349
|
+
|
|
1326
1350
|
##### `mangleCache`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.mangleCache"></a>
|
|
1327
1351
|
|
|
1328
1352
|
```typescript
|