netlify / zip-it-and-ship-it

Intelligently prepare Node.js Lambda functions for deployment
https://www.npmjs.com/package/@netlify/zip-it-and-ship-it
MIT License
316 stars 35 forks source link

fix: add `name` and `generator` support to ISC #1732

Closed Skn0tt closed 6 months ago

Skn0tt commented 6 months ago

Resolves https://linear.app/netlify/issue/COM-428/support-generator-and-name-in-isc-for-functions

github-actions[bot] commented 6 months ago

⏱ Benchmark results

Comparing with 01f1c33e63d5265d3f01d242fbf08f86e4aad83b

largeDepsEsbuild: 1.2s

⬇️ 1.69% decrease vs. 01f1c33e63d5265d3f01d242fbf08f86e4aad83b

^                           1.3s    1.3s            1.3s                                                  
│   1.3s    1.3s    1.3s    ┌──┐    ┌──┐    1.3s    ┌──┐    1.3s    1.2s    1.3s    1.2s    1.3s    1.2s  
│ ──┌──┐────┌──┐────┌──┐────┼──┼────┼──┼────┌──┐────┼──┼────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐──
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend - T-30 (2c254891bc87f427c7b69501fafd3c4d18136711): 1.3s - T-29 (51f5e9e2056a13270a29390262c0e06ed5d34f98): 1.3s - T-28 (f947eb3e210c3332aa024c2989626b6d3ce9485f): 1.4s - T-27 (b06d5a278b9effee9a28f0eeb0e0e5f91d48b971): 1.3s - T-26 (06f408ee100ce0f86786598c36c271a60f114293): 1.3s - T-25 (8591222ba252c5747155c6d5165e92e48df51d63): 1.2s - T-24 (95285a7cc8fd8591d4872013fed1da6efcb18267): 1.3s - T-23 (1aefa6ece854070428a6c7ebfe85b183291920e9): 1.3s - T-22 (7c7ce09b5fafebb0a9cf4246472ec27537eb02f8): 1.3s - T-21 (9e71c5b0e8cb870638168c05d1186b5fa92abcd4): 1.3s - T-20 (5b4140bb36d938bb2ed27254340dfee9e9f2e65e): 1.3s - T-19 (becb2ac0c7d7c8f07d114bbed21a559b7f335434): 1.3s - T-18 (a2071a6e606cc1434fa9d556306bd9dbc7cd7943): 1.3s - T-17 (66b668be6b42b2d0dcf3cfb4922b2c7c1023a6cc): 1.3s - T-16 (a789be6496f8df050b622f5c3597d63499419049): 1.2s - T-15 (f8b965cd66038f653f1adca0ae9fcccfb4c85c7b): 1.3s - T-14 (849af1d6650bae3022405fe51ddbb9d9571e7c61): 1.3s - T-13 (77eb4376f465b78f85399b26a0a2f0928d9d0575): 1.3s - T-12 (b5e8220fef7fb401e3178f4de80469f34d57d5b9): 1.3s - T-11 (c1aca869bc33d13deed81918ea58062d53cc77bd): 1.3s - T-10 (f5929333d3f01535aac097664f8478f68ebc3d24): 1.3s - T-9 (3e765104ec8e55d5238e9e26bfc5d4cf5e3ba579): 1.3s - T-8 (a4a7647a4a4ade26d68f3b5a77f3283584d58df7): 1.3s - T-7 (878dc94eeed4b6777db6986e77ac7d94d3ab809e): 1.3s - T-6 (b673da7e7ae9d579f532b5a5ecabbb2708cef3d8): 1.3s - T-5 (53f8dda36c67f978f87a2087859731b2fc8fc5b6): 1.3s - T-4 (c5f1222daed0cbcbece97710c6606bd7a2ac0480): 1.2s - T-3 (f5a4d27fb6abf42973e725f76f8b75e811588b8b): 1.3s - T-2 (61612d729ff6e537dde34ac94f9afe448356d2da): 1.2s - T-1 (01f1c33e63d5265d3f01d242fbf08f86e4aad83b): 1.3s - **T (current commit): 1.2s**

largeDepsNft: 5.1s

⬇️ 2.88% decrease vs. 01f1c33e63d5265d3f01d242fbf08f86e4aad83b

^   5.5s    5.4s                    5.5s                                                                  
│   ┌──┐    ┌──┐    5.3s    5.3s    ┌──┐    5.2s    5.4s    5.2s            5.2s    5.1s    5.2s          
│ ──┼──┼────┼──┼────┌──┐────┌──┐────┼──┼────┌──┐────┌──┐────┌──┐─────5s─────┌──┐────┌──┐────┌──┐────5.1s──
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    ┌──┐    |  |    |  |    |  |    ┌──┐  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend - T-30 (2c254891bc87f427c7b69501fafd3c4d18136711): 5.6s - T-29 (51f5e9e2056a13270a29390262c0e06ed5d34f98): 5.6s - T-28 (f947eb3e210c3332aa024c2989626b6d3ce9485f): 5.8s - T-27 (b06d5a278b9effee9a28f0eeb0e0e5f91d48b971): 5.5s - T-26 (06f408ee100ce0f86786598c36c271a60f114293): 5.3s - T-25 (8591222ba252c5747155c6d5165e92e48df51d63): 5.5s - T-24 (95285a7cc8fd8591d4872013fed1da6efcb18267): 5.5s - T-23 (1aefa6ece854070428a6c7ebfe85b183291920e9): 5.7s - T-22 (7c7ce09b5fafebb0a9cf4246472ec27537eb02f8): 5.2s - T-21 (9e71c5b0e8cb870638168c05d1186b5fa92abcd4): 5.3s - T-20 (5b4140bb36d938bb2ed27254340dfee9e9f2e65e): 5.3s - T-19 (becb2ac0c7d7c8f07d114bbed21a559b7f335434): 5.5s - T-18 (a2071a6e606cc1434fa9d556306bd9dbc7cd7943): 5.6s - T-17 (66b668be6b42b2d0dcf3cfb4922b2c7c1023a6cc): 5.3s - T-16 (a789be6496f8df050b622f5c3597d63499419049): 5.4s - T-15 (f8b965cd66038f653f1adca0ae9fcccfb4c85c7b): 5.5s - T-14 (849af1d6650bae3022405fe51ddbb9d9571e7c61): 5.5s - T-13 (77eb4376f465b78f85399b26a0a2f0928d9d0575): 5.3s - T-12 (b5e8220fef7fb401e3178f4de80469f34d57d5b9): 5.5s - T-11 (c1aca869bc33d13deed81918ea58062d53cc77bd): 5.4s - T-10 (f5929333d3f01535aac097664f8478f68ebc3d24): 5.3s - T-9 (3e765104ec8e55d5238e9e26bfc5d4cf5e3ba579): 5.3s - T-8 (a4a7647a4a4ade26d68f3b5a77f3283584d58df7): 5.5s - T-7 (878dc94eeed4b6777db6986e77ac7d94d3ab809e): 5.2s - T-6 (b673da7e7ae9d579f532b5a5ecabbb2708cef3d8): 5.4s - T-5 (53f8dda36c67f978f87a2087859731b2fc8fc5b6): 5.2s - T-4 (c5f1222daed0cbcbece97710c6606bd7a2ac0480): 5s - T-3 (f5a4d27fb6abf42973e725f76f8b75e811588b8b): 5.2s - T-2 (61612d729ff6e537dde34ac94f9afe448356d2da): 5.1s - T-1 (01f1c33e63d5265d3f01d242fbf08f86e4aad83b): 5.2s - **T (current commit): 5.1s**

largeDepsZisi: 9.2s

⬇️ 5.76% decrease vs. 01f1c33e63d5265d3f01d242fbf08f86e4aad83b

^  10.3s   10.2s   10.2s   10.2s                   10.1s                                                  
│   ┌──┐    ┌──┐    ┌──┐    ┌──┐    10s     9.9s    ┌──┐    9.5s    9.8s    9.8s    9.7s    9.7s          
│ ──┼──┼────┼──┼────┼──┼────┼──┼────┌──┐────┌──┐────┼──┼────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────9.2s──
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    ┌──┐  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend - T-30 (2c254891bc87f427c7b69501fafd3c4d18136711): 10.7s - T-29 (51f5e9e2056a13270a29390262c0e06ed5d34f98): 10.7s - T-28 (f947eb3e210c3332aa024c2989626b6d3ce9485f): 10.8s - T-27 (b06d5a278b9effee9a28f0eeb0e0e5f91d48b971): 10.4s - T-26 (06f408ee100ce0f86786598c36c271a60f114293): 10s - T-25 (8591222ba252c5747155c6d5165e92e48df51d63): 10.3s - T-24 (95285a7cc8fd8591d4872013fed1da6efcb18267): 10.4s - T-23 (1aefa6ece854070428a6c7ebfe85b183291920e9): 10.5s - T-22 (7c7ce09b5fafebb0a9cf4246472ec27537eb02f8): 10.2s - T-21 (9e71c5b0e8cb870638168c05d1186b5fa92abcd4): 10s - T-20 (5b4140bb36d938bb2ed27254340dfee9e9f2e65e): 10s - T-19 (becb2ac0c7d7c8f07d114bbed21a559b7f335434): 10.3s - T-18 (a2071a6e606cc1434fa9d556306bd9dbc7cd7943): 10.4s - T-17 (66b668be6b42b2d0dcf3cfb4922b2c7c1023a6cc): 10.2s - T-16 (a789be6496f8df050b622f5c3597d63499419049): 10.2s - T-15 (f8b965cd66038f653f1adca0ae9fcccfb4c85c7b): 10.2s - T-14 (849af1d6650bae3022405fe51ddbb9d9571e7c61): 10.2s - T-13 (77eb4376f465b78f85399b26a0a2f0928d9d0575): 10s - T-12 (b5e8220fef7fb401e3178f4de80469f34d57d5b9): 10.3s - T-11 (c1aca869bc33d13deed81918ea58062d53cc77bd): 10.2s - T-10 (f5929333d3f01535aac097664f8478f68ebc3d24): 10.2s - T-9 (3e765104ec8e55d5238e9e26bfc5d4cf5e3ba579): 10.2s - T-8 (a4a7647a4a4ade26d68f3b5a77f3283584d58df7): 10s - T-7 (878dc94eeed4b6777db6986e77ac7d94d3ab809e): 9.9s - T-6 (b673da7e7ae9d579f532b5a5ecabbb2708cef3d8): 10.1s - T-5 (53f8dda36c67f978f87a2087859731b2fc8fc5b6): 9.5s - T-4 (c5f1222daed0cbcbece97710c6606bd7a2ac0480): 9.8s - T-3 (f5a4d27fb6abf42973e725f76f8b75e811588b8b): 9.8s - T-2 (61612d729ff6e537dde34ac94f9afe448356d2da): 9.7s - T-1 (01f1c33e63d5265d3f01d242fbf08f86e4aad83b): 9.7s - **T (current commit): 9.2s**