Skip to content

Commit

Permalink
chore: Migrate CJS to ESM (ant-design#42055)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan authored Apr 28, 2023
1 parent c9bac13 commit de1a73a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 7 deletions.
46 changes: 44 additions & 2 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Alfred Qiu <[email protected]>
Ali Zhdanov <[email protected]>
AliRezaBeigy <[email protected]>
Aliaksandr <[email protected]>
Alina Andrieieva <[email protected]>
Alireza <[email protected]>
Alvin Abia <[email protected]>
Aminul Islam <[email protected]>
Expand All @@ -56,13 +57,15 @@ Anas Tawfeek <[email protected]>
Andre Perunicic <[email protected]>
Andre Zyczkowski <[email protected]>
Andrea Blanco <[email protected]>
Andrew Blakey <[email protected]>
Andrew Horn <[email protected]>
Andrew Murray <[email protected]>
Andrew Shearer <[email protected]>
Andrey G <[email protected]>
Andrzej Dybionka <[email protected]>
André <[email protected]>
Andrés <[email protected]>
AndyJin <[email protected]>
Ankit Babbar <[email protected]>
Antee <[email protected]>
Aobo Yang <[email protected]>
Expand Down Expand Up @@ -144,6 +147,7 @@ Cheng Liu <[email protected]>
Chenjia <[email protected]>
Chiciuc Nicușor <[email protected]>
Chikara Chan <[email protected]>
Chinnawat Chimdee <[email protected]>
Chris Frisina <[email protected]>
Chris Kelly <[email protected]>
Chris Young <[email protected]>
Expand All @@ -152,6 +156,7 @@ Christian Fleschhut <[email protected]>
Christian Vadalà <[email protected]>
Christophe Hurpeau <[email protected]>
Christopher Deutsch <[email protected]>
ChuTao Zhang <[email protected]>
Chuang Yu <[email protected]>
Chuck <[email protected]>
Chuns Chen <[email protected]>
Expand Down Expand Up @@ -199,6 +204,7 @@ Debiancc <[email protected]>
DengYun <[email protected]>
Denis <[email protected]>
Dennis Chen <[email protected]>
Denys Halenok <[email protected]>
Derrick <[email protected]>
Di Wu <[email protected]>
DiamondYuan <[email protected]>
Expand All @@ -209,6 +215,7 @@ Dimitri Mitropoulos <[email protected]>
Dmitriy <[email protected]>
Dmitriy Mironov <[email protected]>
Dmitry Bolotin <[email protected]>
Dmitry Cherendieiev <[email protected]>
Dmitry Gladkikh <[email protected]>
Dmitry Guryev <[email protected]>
Dmitry Manannikov <[email protected]>
Expand All @@ -222,6 +229,7 @@ Douglas Mason <[email protected]>
Dreamcreative <[email protected]>
Dunqing <[email protected]>
Dunqing <[email protected]>
Duy Pham <[email protected]>
Dzmitry Yarmoshkin <[email protected]>
Eager <[email protected]>
Eber Rodrigues <[email protected]>
Expand Down Expand Up @@ -418,6 +426,7 @@ Jiawei Huang <[email protected]>
Jichao Zhong <[email protected]>
Jiehui <[email protected]>
Jieraaa <[email protected]>
Jimmy <[email protected]>
Jin ZHANG <[email protected]>
JinXin <[email protected]>
Jing Ma <[email protected]>
Expand Down Expand Up @@ -495,13 +504,15 @@ Kimmo Saari <[email protected]>
KingxBeta <[email protected]>
Kirill Alexander Khalitov <[email protected]>
Kirill Stiopin <[email protected]>
Kiyan <[email protected]>
Knacktus <[email protected]>
Knut Olav Bøhmer <[email protected]>
Kodai Nakamura <[email protected]>
Kol Chen <[email protected]>
Konrad Machlowski <[email protected]>
Krishna Dubagunta <[email protected]>
Krishna Singh <[email protected]>
KuangPengfei <[email protected]>
Kuitos <[email protected]>
Kurt Furbush <[email protected]>
Kyle Kelley <[email protected]>
Expand All @@ -527,6 +538,7 @@ LiPinghai <[email protected]>
LilyWakana <[email protected]>
Liming Jin <[email protected]>
Liming Jin <[email protected]>
Lioness100 <[email protected]>
Liron Lavy <[email protected]>
Liu Bowen <[email protected]>
Liu Ya <[email protected]>
Expand Down Expand Up @@ -569,6 +581,7 @@ Marcus Stenbeck <[email protected]>
Marius Ileana <[email protected]>
Mars Wong <[email protected]>
Marshall Chen <[email protected]>
Martijn <[email protected]>
Martin Cermak <[email protected]>
Martin Litvaj <[email protected]>
Martin Novák <[email protected]>
Expand Down Expand Up @@ -631,6 +644,7 @@ Mr.jiangzhiguo <[email protected]>
Ms. Wang <[email protected]>
MuYu <[email protected]>
Muhammad Sameer <[email protected]>
Muhammad Sohaib Raza <[email protected]>
Mykyta Velykanov <[email protected]>
Mário Gonçalves <[email protected]>
Nariman Movaffaghi <[email protected]>
Expand Down Expand Up @@ -694,6 +708,7 @@ Peter Berg <[email protected]>
Peter Gassner <[email protected]>
Phanupong Janthapoon <[email protected]>
Philip Oliver <[email protected]>
PhosphorusP <[email protected]>
Phyllis <[email protected]>
Picsong <[email protected]>
Pierre <[email protected]>
Expand All @@ -716,7 +731,9 @@ QingLance <[email protected]>
Qingrong Ke <[email protected]>
QoVoQ <[email protected]>
Radomir Skrzepij <[email protected]>
Rafael Carvalho <[email protected]>
Rafael Cosman <[email protected]>
Rafael Martins <[email protected]>
Rahul Gurung <[email protected]>
Rain120 <[email protected]>
Rainy <[email protected]>
Expand All @@ -738,11 +755,14 @@ Ricardo Morais <[email protected]>
Ricardo Raphael Joson <[email protected]>
Richard D. Worth <[email protected]>
Rick Zhou <[email protected]>
Ritesh Makan <[email protected]>
Riyad Elberkawy <[email protected]>
Robert Wilkinson <[email protected]>
Robin Pokorny <[email protected]>
Rodrigo Ehlers <[email protected]>
Rohan Bagchi <[email protected]>
Rohan Malhotra <[email protected]>
Roman Soroka <[email protected]>
Ron Šmeral <[email protected]>
Rongjian Zhang <[email protected]>
Rrrandom <[email protected]>
Expand Down Expand Up @@ -800,6 +820,7 @@ Simo Aleksandrov <[email protected]>
Simon <[email protected]>
Simon Altschuler <[email protected]>
Simon Knott <[email protected]>
Simón Posada Fishman <[email protected]>
Siou <[email protected]>
Sivaraj <[email protected]>
SkyAo <[email protected]>
Expand All @@ -813,6 +834,7 @@ South <[email protected]>
Spencer <[email protected]>
Stanley Thijssen <[email protected]>
Stanley Thijssen <[email protected]>
Star <[email protected]>
Stef Schenkelaars <[email protected]>
Stephen Esser <[email protected]>
Stevche Radevski <[email protected]>
Expand All @@ -825,6 +847,7 @@ Sunny Luo <[email protected]>
Sven Efftinge <[email protected]>
Svyatoslav <[email protected]>
SyMind <[email protected]>
Sylvain Boulade <[email protected]>
SylvanasGone <[email protected]>
TTC <[email protected]>
TangLL <[email protected]>
Expand All @@ -839,6 +862,7 @@ Teng YANG <[email protected]>
Teng YANG <[email protected]>
Tengjiao Cai <[email protected]>
Terence <[email protected]>
The 1975 <[email protected]>
The Rock <[email protected]>
Themi Tsiotas von Pfaler <[email protected]>
Theo Satloff <[email protected]>
Expand Down Expand Up @@ -947,13 +971,15 @@ YuChao Liang <[email protected]>
YuTao <[email protected]>
Yuan <[email protected]>
Yuhang Liu <[email protected]>
Yuiai01 <[email protected]>
Yuki Zhang <[email protected]>
Yulia Maximova <[email protected]>
Yunfly <[email protected]>
Yunhwan Logan Na <[email protected]>
Yunus EŞ <[email protected]>
Yunwoo Ji <[email protected]>
Yuri Pirola <[email protected]>
Yurii Brusentsov <[email protected]>
Yury Kozyrev <[email protected]>
Yusuke Ito <[email protected]>
Yuwei Ba <[email protected]>
Expand Down Expand Up @@ -981,10 +1007,12 @@ Zhongjan <[email protected]>
ZhouZhen <[email protected]>
Zhuo Chen <[email protected]>
Ziluo <[email protected]>
ZivHe <[email protected]>
Zohaib Ijaz <[email protected]>
Zzzen <[email protected]>
_XiaoTian <[email protected]>
aLIEzsss4 <[email protected]>
aaarichter <[email protected]>
aashutoshrathi <[email protected]>
acfasj <[email protected]>
adam <[email protected]>
Expand Down Expand Up @@ -1120,6 +1148,7 @@ hebingchang <[email protected]>
hehe <[email protected]>
hehe <[email protected]>
hello-chinese <[email protected]>
helloqian12138 <[email protected]>
henryv0 <[email protected]>
hi-caicai <[email protected]>
hicrystal <[email protected]>
Expand All @@ -1138,6 +1167,7 @@ ibrahim velinov <[email protected]>
imosapatryk <[email protected]>
int2d <[email protected]>
iojichervo <[email protected]>
iola1999 <[email protected]>
ioldfish <[email protected]>
iorikingdom <[email protected]>
isaced <[email protected]>
Expand Down Expand Up @@ -1185,6 +1215,7 @@ kristof0425 <[email protected]>
kuang <[email protected]>
kun sam <[email protected]>
lalalazero <[email protected]>
lamvananh <[email protected]>
leadream <[email protected]>
lehug <[email protected]>
leijingdao <[email protected]>
Expand Down Expand Up @@ -1221,9 +1252,11 @@ luyiming <[email protected]>
lvren <[email protected]>
lxnxbnq <[email protected]>
lyhper <[email protected]>
lyn <[email protected]>
lyon.han <[email protected]>
mArker <[email protected]>
maks <[email protected]>
maomao <[email protected]>
maximest-pierre <[email protected]>
melchior voidwolf <[email protected]>
memoryza <[email protected]>
Expand Down Expand Up @@ -1269,6 +1302,7 @@ pizn <[email protected]>
plainnany <[email protected]>
popomore <[email protected]>
prettyboyweiwei <[email protected]>
puxiao <[email protected]>
qianbin <[email protected]>
qiaojie <[email protected]>
qiqiboy <[email protected]>
Expand Down Expand Up @@ -1339,7 +1373,8 @@ undefined <undefined>
unknown <[email protected]>
unknown <[email protected]>
ustccjw <[email protected]>
vagusX <[email protected]>
vaakian X <[email protected]>
vagusx <[email protected]>
valleykid <[email protected]>
vaytsel <[email protected]>
veveue <[email protected]>
Expand All @@ -1364,6 +1399,7 @@ wangxingkang <[email protected]>
wangxueliang <[email protected]>
wanli <[email protected]>
warmhug <[email protected]>
weited <[email protected]>
wendellhu <[email protected]>
wenhong <[email protected]>
whinc <[email protected]>
Expand All @@ -1384,6 +1420,7 @@ xiaoxintang <[email protected]>
xiejiahe <[email protected]>
xilihuasi <[email protected]>
xinhui.zxh <[email protected]>
xliez <[email protected]>
xrkffgg <[email protected]>
xuqiang <[email protected]>
xyb <[email protected]>
Expand Down Expand Up @@ -1412,6 +1449,7 @@ yui <[email protected]>
yykoypj <[email protected]>
z <[email protected]>
zack <[email protected]>
zahgboat <[email protected]>
zefeng <[email protected]>
zelongc <[email protected]>
zerob4wl <[email protected]>
Expand Down Expand Up @@ -1487,6 +1525,7 @@ zz <[email protected]>
尾宿君 <[email protected]>
山客 <[email protected]>
崔宏森 <[email protected]>
左耳咚 <[email protected]>
广彬-梁 <[email protected]>
庄天翼 <[email protected]>
廖应龙 <[email protected]>
Expand Down Expand Up @@ -1524,6 +1563,7 @@ zz <[email protected]>
竹尔 <[email protected]>
米老朱 <[email protected]>
精武陈真 <[email protected]>
红果汁 <[email protected]>
约修亚 <[email protected]>
翁润雨 <[email protected]>
臧甲彬 fadeaway <[email protected]>
Expand All @@ -1536,6 +1576,7 @@ zz <[email protected]>
蔡伦 <[email protected]>
薛定谔的猫 <[email protected]>
薛定谔的猫 <[email protected]>
藤原托漆 <[email protected]>
行冥 <[email protected]>
诸岳 <[email protected]>
诸岳 <[email protected]>
Expand All @@ -1547,6 +1588,7 @@ zz <[email protected]>
迷渡 <[email protected]>
郑国庆 <[email protected]>
郑旭 <[email protected]>
野迂迂 <[email protected]>
闲耘™ <[email protected]>
陆离 <[email protected]>
陈帅 <[email protected]>
Expand All @@ -1567,4 +1609,4 @@ zz <[email protected]>
黄斌 <[email protected]>
黑雨 <[email protected]>
龙风 <[email protected]>
龚方闻 <[email protected]>
龚方闻 <[email protected]>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"scripts": {
"prepare": "husky install",
"api-collection": "antd-tools run api-collection",
"authors": "node ./scripts/generate-authors",
"authors": "ts-node --esm --project tsconfig.node.json scripts/generate-authors.ts",
"build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
"size-limit": "size-limit",
"check-commit": "node ./scripts/check-commit",
Expand Down
8 changes: 4 additions & 4 deletions scripts/generate-authors.js → scripts/generate-authors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
const fs = require('fs');
const simpleGit = require('simple-git');
const _ = require('lodash');
import fs from 'fs';
import _ from 'lodash';
import path from 'path';
import simpleGit from 'simple-git';

const cwd = process.cwd();
const git = simpleGit(cwd);
Expand Down

0 comments on commit de1a73a

Please sign in to comment.