@mux/mux-elements-codemod
Advanced tools
Comparing version 1.0.1-canary.2-2686be8 to 1.0.1-canary.3-cbb4bc0
{ | ||
"name": "@mux/mux-elements-codemod", | ||
"version": "1.0.1-canary.2-2686be8", | ||
"version": "1.0.1-canary.3-cbb4bc0", | ||
"description": "A codemod to transform @mux-elments scope imports into @mux scope imports", | ||
@@ -5,0 +5,0 @@ "bin": "./dist/index.mjs", |
@@ -118,4 +118,5 @@ #!/usr/bin/env node | ||
files.forEach((file) => { | ||
type SedOptions = [string, string, string] | [string, string, string, string]; | ||
const sedOptions: SedOptions = ['@mux-elements/', '@mux/', file]; | ||
type SedOptions = [RegExp, string, string] | [string, RegExp, string, string]; | ||
// use the regex with `/g` so that multiple items on a line get replaced | ||
const sedOptions: SedOptions = [/@mux-elements\//g, '@mux/', file]; | ||
if (force) { | ||
@@ -122,0 +123,0 @@ sedOptions.unshift('-i'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30945
266