diff --git a/.npmrc b/.npmrc index 43c97e7..9951b11 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ package-lock=false +ignore-scripts=true diff --git a/index.js b/index.js index 8f32a5c..a7e64d1 100644 --- a/index.js +++ b/index.js @@ -126,7 +126,6 @@ export function findAndReplace(tree, find, replace, options) { while (match) { position = match.index - // @ts-expect-error this is perfectly fine, typescript. let value = replace(...match, {index: match.index, input: match.input}) if (typeof value === 'string') {