Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
imcotton committed Aug 1, 2024
1 parent 35fb1af commit c00df40
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Input source is reading from `stdin`.

- `--lodash`: pkg naming starts by `lodash.` or equals to `lodash`
- `--nolyfill`: list of names from https://github.com/SukkaW/nolyfill (**1.0.34**)
- `--relief`: list of names from https://github.com/es-tooling/module-replacements (**2.2.0**)
- `--relief`: list of names from https://github.com/es-tooling/module-replacements (**2.3.0**)
- `--relief-native`
- `--relief-micro`
- `--relief-preferred`
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "A command line tool that glance over package dependencies.",
"license": "AGPL-3.0-only",
"imports": {
"module-replacements/": "https://esm.sh/gh/es-tooling/module-replacements@2.2.0/",
"module-replacements/": "https://esm.sh/gh/es-tooling/module-replacements@2.3.0/",
"nolyfill/": "https://esm.sh/gh/SukkaW/[email protected]/",
"@std/testing": "jsr:@std/testing@^0.225.3",
"@std/assert": "jsr:@std/assert@^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cli/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Builtin Presets:
--nolyfill (via SukkaW/nolyfill v1.0.34)
--relief (via es-tooling/module-replacements v2.2.0)
--relief (via es-tooling/module-replacements v2.3.0)
--relief-native
--relief-micro
--relief-preferred
Expand Down
13 changes: 6 additions & 7 deletions src/presets/relief.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { lookup, type Predicate } from '../common.ts';



// https://github.com/es-tooling/module-replacements/blob/2.2.0/manifests/native.json
// https://github.com/es-tooling/module-replacements/blob/2.3.0/manifests/native.json

export const native_list: ReadonlyArray<string> = [ // -native

Expand Down Expand Up @@ -73,14 +73,13 @@ export const native_list: ReadonlyArray<string> = [ // -native
'math.log10',
'math.log1p',
'math.sign',
'math.sinh',
'number.isfinite',
'number.isinteger',
'number.isnan',
'number.issafeinteger',
'number.parsefloat',
'number.parseint',
'number.prototype.exponential',
'number.prototype.toexponential',
'object-is',
'object.assign',
'object-assign',
Expand Down Expand Up @@ -113,7 +112,7 @@ export const native_list: ReadonlyArray<string> = [ // -native
'string.prototype.trimend',
'string.prototype.trimleft',
'string.prototype.trimright',
'string.prototype.trimStart',
'string.prototype.trimstart',
'string.raw',
'symbol.prototype.description',
'typed-array-buffer',
Expand Down Expand Up @@ -148,7 +147,7 @@ export const native_check: Predicate<string> = lookup(native_list);



// https://github.com/es-tooling/module-replacements/blob/2.2.0/manifests/micro-utilities.json
// https://github.com/es-tooling/module-replacements/blob/2.3.0/manifests/micro-utilities.json

export const micro_list: ReadonlyArray<string> = [ // -micro

Expand All @@ -162,7 +161,7 @@ export const micro_list: ReadonlyArray<string> = [ // -micro
'is-number',
'is-number-object',
'is-plain-object',
'is-primitve',
'is-primitive',
'is-regexp',
'is-string',
'is-travis',
Expand All @@ -183,7 +182,7 @@ export const micro_check: Predicate<string> = lookup(micro_list);



// https://github.com/es-tooling/module-replacements/blob/2.2.0/manifests/preferred.json
// https://github.com/es-tooling/module-replacements/blob/2.3.0/manifests/preferred.json

export const preferred_list: ReadonlyArray<string> = [ // -preferred

Expand Down

0 comments on commit c00df40

Please sign in to comment.