Skip to content

Commit cfd626f

Browse files
Derek Lewisphillipj
Derek Lewis
authored andcommitted
labels: add ES Modules (#249)
Resolves: nodejs/modules#460
1 parent ab459fd commit cfd626f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/node-labels.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const subSystemLabelsMap = new Map([
9191
[/^lib\/.*http2/, ['http2', 'dont-land-on-v6.x']],
9292
[/^lib\/worker_threads.js$/, ['worker']],
9393
[/^lib\/internal\/url\.js$/, ['url-whatwg']],
94+
[/^lib\/internal\/modules\/esm/, 'ES Modules'],
9495
// All other lib/ files map directly
9596
[/^lib\/_(\w+)_\w+\.js?$/, '$1'], // e.g. _(stream)_wrap
9697
[/^lib(\/internal)?\/(\w+)\.js?$/, '$2'], // other .js files
@@ -99,7 +100,7 @@ const subSystemLabelsMap = new Map([
99100

100101
const jsSubsystemList = [
101102
'debugger', 'assert', 'async_hooks', 'buffer', 'child_process', 'cluster',
102-
'console', 'crypto', 'dgram', 'dns', 'domain', 'events', 'fs', 'http',
103+
'console', 'crypto', 'dgram', 'dns', 'domain', 'events', 'esm', 'fs', 'http',
103104
'https', 'http2', 'module', 'net', 'os', 'path', 'process', 'querystring',
104105
'readline', 'repl', 'report', 'stream', 'string_decoder', 'timers', 'tls',
105106
'tty', 'url', 'util', 'v8', 'vm', 'worker', 'zlib'
@@ -118,11 +119,15 @@ const exclusiveLabelsMap = new Map([
118119
[/^test\/addons-napi\//, ['test', 'n-api']],
119120
[/^test\/async-hooks\//, ['test', 'async_hooks']],
120121
[/^test\/report\//, ['test', 'report']],
122+
[/^test\/fixtures\/es-module/, ['test', 'ES Modules']],
123+
[/^test\/es-module\//, ['test', 'ES Modules']],
121124

122125
[/^test\//, 'test'],
123126

124127
// specific map for modules.md as it should be labeled 'module' not 'modules'
125128
[/^doc\/api\/modules.md$/, ['doc', 'module']],
129+
// specific map for esm.md as it should be labeled 'ES Modules' not 'esm'
130+
[/^doc\/api\/esm.md$/, ['doc', 'ES Modules']],
126131
// n-api is treated separately since it is not a JS core module but is still
127132
// considered a subsystem of sorts
128133
[/^doc\/api\/n-api.md$/, ['doc', 'n-api']],

0 commit comments

Comments
 (0)