tsc-esm-fix
Advanced tools
Comparing version 2.14.1 to 2.15.0
{ | ||
"git": { | ||
"commitId": "1890f2e69b6a4230b1b8ca429e33d4c89f042378", | ||
"commitId": "996c2dbae8f9946c0851378cd9b58d78e2b5160f", | ||
"repoUrl": "https://github.com/antongolub/tsc-esm-fix", | ||
"repoName": "antongolub/tsc-esm-fix" | ||
}, | ||
"date": "2022-05-13T14:50:51.950Z" | ||
"date": "2022-05-18T09:29:20.573Z" | ||
} |
@@ -0,1 +1,8 @@ | ||
# [2.15.0](https://github.com/antongolub/tsc-esm-fix/compare/v2.14.1...v2.15.0) (2022-05-18) | ||
### Features | ||
* handle single `.` case ([4803452](https://github.com/antongolub/tsc-esm-fix/commit/4803452c9994c4a8674acc20cd9fe6972071a02a)) | ||
## [2.14.1](https://github.com/antongolub/tsc-esm-fix/compare/v2.14.0...v2.14.1) (2022-05-13) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "tsc-esm-fix", | ||
"version": "2.14.1", | ||
"version": "2.15.0", | ||
"private": false, | ||
@@ -66,3 +66,3 @@ "publishConfig": { | ||
"@types/jest": "^27.5.1", | ||
"@types/node": "^17.0.33", | ||
"@types/node": "^17.0.34", | ||
"@types/semver": "^7.3.9", | ||
@@ -69,0 +69,0 @@ "cpy-cli": "^4.1.0", |
@@ -51,2 +51,3 @@ # tsc-esm-fix | ||
* Pays attention to index files: `import {bar} from './bar'` → `import {bar} from './bar/index.js'` | ||
* Handles single '.': `export * from '.'` → `export * from './index.js'` | ||
* Follows `outDir` found in **tsconfig.json**. | ||
@@ -53,0 +54,0 @@ * Searches and replaces `__dirname` and `__filename` refs with `import.meta`. |
@@ -1,2 +0,2 @@ | ||
import{resolve as e,dirname as o,basename as n}from"node:path";import{readFileSync as t,unlinkSync as r}from"fs";import s from"fs-extra";import{globby as l}from"globby";import i from"json5";function a(){return a=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},a.apply(this,arguments)}const u=e=>t(e,{encoding:"utf8"}),d=e=>i.parse(u(e)),c=e=>e?Array.isArray(e)?e:[e]:[],p=r,m=e=>e.replace(/\\/g,"/"),f=n=>{const t=d(n);if(t.extends){const r=f(e(o(n),t.extends));return a({},r,t,{compilerOptions:a({},r.compilerOptions,t.compilerOptions)})}return t},g={cwd:process.cwd(),tsconfig:"./tsconfig.json",filenameVar:!0,dirnameVar:!0,ext:!0,unlink:!0,debug:()=>{}},b=(o,n)=>c(o).reduce((o,t)=>{var r,s;const l=f(e(n,t)),i=null==l||null==(r=l.compilerOptions)?void 0:r.outDir,a=null==l||null==(s=l.compilerOptions)||null==s.module.toLowerCase?void 0:s.module.toLowerCase();return i&&a.startsWith("es")?o.push(i):console.warn("tsconfig should declare `outDir` and `module` type es6 or above"),o},[]),w=(e,o)=>e.map(e=>e.replace(/\.[^./\\]+$/,o)),x=(n,t,r,s)=>n.replace(/(\sfrom\s|[\s(](?:import|require)[ (])(["'])([^"']+\/[^"']+)(["'])/g,(n,l,i,a,u)=>`${l}${i}${((n,t,r,s)=>{const l=o(n),i=e(s,"node_modules"),a=/^\..+\.[^./\\]+$/.test(t)?[t,t.replace(/\.[^./\\]+$/,"")]:[t],u=[".js",".cjs",".mjs"].reduce((e,o)=>(a.forEach(n=>e.push(`${n}${o}`,`${n}/index${o}`)),e),[]);return u.find(o=>r.includes(m(e(l,o))))||u.find(o=>r.includes(m(e(i,o))))||t})(t,a,r,s)}${u}`),y=e=>e.replace(/__dirname/g,"/file:\\/\\/(.+)\\/[^/]/.exec(import.meta.url)[1]"),h=e=>e.replace(/__filename/g,"/file:\\/\\/(.+)/.exec(import.meta.url)[1]"),$=e=>0===e.trim().length?"\nexport {}\nexport default undefined\n":e,_=(e,o,n,{cwd:t,ext:r,dirnameVar:s,filenameVar:l,fillBlank:i})=>{let a=e;return r&&(a=x(a,o,n,t)),s&&(a=y(a)),l&&(a=h(a)),i&&(a=$(a)),a},j=e=>l(["node_modules/*/package.json"],{cwd:e,onlyFiles:!0,absolute:!0}).then(e=>e.filter(e=>d(e).exports).map(e=>n(o(e)))),v=async o=>{const n=(e=>a({},g,e,{debug:"function"==typeof(null==e?void 0:e.debug)?e.debug:!0===(null==e?void 0:e.debug)?console.log:g.debug}))(o),{cwd:t,target:r,src:i,tsconfig:d,out:f=t,ext:x,debug:y,unlink:h}=n,$=e(t,f),v=c(i),O=[...c(r),...b(d,t)];y("debug:cwd",t),y("debug:outdir",$),y("debug:sources",v),y("debug:targets",O);const k=v.length>0?v.map(e=>`${e}/**/*.{ts,tsx}`):O.map(e=>`${e}/**/*.js`),F=await l(k,{cwd:t,onlyFiles:!0,absolute:!0}),V=await(async e=>l(["node_modules/**/*.(m|c)?js","!node_modules/.cache","!node_modules/.bin","!node_modules/**/node_modules",...(await j(e)).map(e=>`!node_modules/${e}`)],{cwd:e,onlyFiles:!0,absolute:!0}))(t);y("debug:external-names",V);const A="string"==typeof x?w(F,x):F;y("debug:local-names",A);const C=[...V,...A];A.forEach((e,o)=>{const r=(i?F[o]:e).replace(m(t),m($)),l=u(F[o]);((e,o)=>{s.outputFileSync(e,o,{encoding:"utf8"})})(r,_(l,e,C,n)),!i&&h&&t===$&&r!==F[o]&&p(F[o])})};export{g as DEFAULT_FIX_OPTIONS,v as fix,$ as fixBlankFiles,_ as fixContents,y as fixDirnameVar,w as fixFilenameExtensions,h as fixFilenameVar,x as fixModuleReferences}; | ||
import{resolve as e,dirname as o,basename as n}from"node:path";import t from"fs-extra";import{globby as r}from"globby";import l from"json5";function s(){return s=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},s.apply(this,arguments)}const i=e=>t.readFileSync(e,{encoding:"utf8"}),a=e=>l.parse(i(e)),u=e=>e?Array.isArray(e)?e:[e]:[],c=t.unlinkSync,d=e=>e.replace(/\\/g,"/"),p=n=>{const t=a(n);if(t.extends){const r=p(e(o(n),t.extends));return s({},r,t,{compilerOptions:s({},r.compilerOptions,t.compilerOptions)})}return t},m={cwd:process.cwd(),tsconfig:"./tsconfig.json",filenameVar:!0,dirnameVar:!0,ext:!0,unlink:!0,debug:()=>{}},f=(o,n)=>u(o).reduce((o,t)=>{var r,l;const s=p(e(n,t)),i=null==s||null==(r=s.compilerOptions)?void 0:r.outDir,a=null==s||null==(l=s.compilerOptions)||null==l.module.toLowerCase?void 0:l.module.toLowerCase();return i&&a.startsWith("es")?o.push(i):console.warn("tsconfig should declare `outDir` and `module` type es6 or above"),o},[]),g=(e,o)=>e.map(e=>e.replace(/\.[^./\\]+$/,o)),b=(n,t,r,l)=>n.replace(/(\sfrom\s|[\s(](?:import|require)[ (])(["'])([^"']+\/[^"']+|\.)(["'])/g,(n,s,i,a,u)=>`${s}${i}${((n,t,r,l)=>{const s=o(n),i=e(l,"node_modules"),a=/^\..+\.[^./\\]+$/.test(t)?[t,t.replace(/\.[^./\\]+$/,"")]:[t],u=[".js",".cjs",".mjs"].reduce((e,o)=>(a.forEach(n=>e.push(`${n}${o}`,`${n}/index${o}`)),e),[]);return u.find(o=>r.includes(d(e(s,o))))||u.find(o=>r.includes(d(e(i,o))))||t})(t,a,r,l)}${u}`),y=e=>e.replace(/__dirname/g,"/file:\\/\\/(.+)\\/[^/]/.exec(import.meta.url)[1]"),w=e=>e.replace(/__filename/g,"/file:\\/\\/(.+)/.exec(import.meta.url)[1]"),x=e=>0===e.trim().length?"\nexport {}\nexport default undefined\n":e,h=(e,o,n,{cwd:t,ext:r,dirnameVar:l,filenameVar:s,fillBlank:i})=>{let a=e;return r&&(a=b(a,o,n,t)),l&&(a=y(a)),s&&(a=w(a)),i&&(a=x(a)),a},$=e=>r(["node_modules/*/package.json"],{cwd:e,onlyFiles:!0,absolute:!0}).then(e=>e.filter(e=>a(e).exports).map(e=>n(o(e)))),_=async o=>{const n=(e=>s({},m,e,{debug:"function"==typeof(null==e?void 0:e.debug)?e.debug:!0===(null==e?void 0:e.debug)?console.log:m.debug}))(o),{cwd:l,target:a,src:p,tsconfig:b,out:y=l,ext:w,debug:x,unlink:_}=n,j=e(l,y),v=u(p),O=[...u(a),...f(b,l)];x("debug:cwd",l),x("debug:outdir",j),x("debug:sources",v),x("debug:targets",O);const k=v.length>0?v.map(e=>`${e}/**/*.{ts,tsx}`):O.map(e=>`${e}/**/*.js`),F=await r(k,{cwd:l,onlyFiles:!0,absolute:!0}),V=await(async e=>r(["node_modules/**/*.(m|c)?js","!node_modules/.cache","!node_modules/.bin","!node_modules/**/node_modules",...(await $(e)).map(e=>`!node_modules/${e}`)],{cwd:e,onlyFiles:!0,absolute:!0}))(l);x("debug:external-names",V);const S="string"==typeof w?g(F,w):F;x("debug:local-names",S);const A=[...V,...S];S.forEach((e,o)=>{const r=(p?F[o]:e).replace(d(l),d(j)),s=i(F[o]);((e,o)=>{t.outputFileSync(e,o,{encoding:"utf8"})})(r,h(s,e,A,n)),!p&&_&&l===j&&r!==F[o]&&c(F[o])})};export{m as DEFAULT_FIX_OPTIONS,_ as fix,x as fixBlankFiles,h as fixContents,y as fixDirnameVar,g as fixFilenameExtensions,w as fixFilenameVar,b as fixModuleReferences}; | ||
//# sourceMappingURL=tsc-esm-fix.modern.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("node:path"),require("fs"),require("fs-extra"),require("globby"),require("json5")):"function"==typeof define&&define.amd?define(["exports","node:path","fs","fs-extra","globby","json5"],n):n((e||self).tscEsmFix={},e.node_path,e.fs,e.fsExtra,e.globby,e.json5)}(this,function(e,n,r,t,o,u){function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=/*#__PURE__*/i(t),l=/*#__PURE__*/i(u);function s(){return s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},s.apply(this,arguments)}var a=function(e){return r.readFileSync(e,{encoding:"utf8"})},f=function(e){return l.default.parse(a(e))},d=function(e){return e?Array.isArray(e)?e:[e]:[]},m=r.unlinkSync,p=function(e){return e.replace(/\\/g,"/")},g=function e(r){var t=f(r);if(t.extends){var o=e(n.resolve(n.dirname(r),t.extends));return s({},o,t,{compilerOptions:s({},o.compilerOptions,t.compilerOptions)})}return t},b={cwd:process.cwd(),tsconfig:"./tsconfig.json",filenameVar:!0,dirnameVar:!0,ext:!0,unlink:!0,debug:function(){}},v=function(e,r){return d(e).reduce(function(e,t){var o,u,i=g(n.resolve(r,t)),c=null==i||null==(o=i.compilerOptions)?void 0:o.outDir,l=null==i||null==(u=i.compilerOptions)||null==u.module.toLowerCase?void 0:u.module.toLowerCase();return c&&l.startsWith("es")?e.push(c):console.warn("tsconfig should declare `outDir` and `module` type es6 or above"),e},[])},x=function(e,n){return e.map(function(e){return e.replace(/\.[^./\\]+$/,n)})},y=function(e,r,t,o){return e.replace(/(\sfrom\s|[\s(](?:import|require)[ (])(["'])([^"']+\/[^"']+)(["'])/g,function(e,u,i,c,l){return""+u+i+function(e,r,t,o){var u=n.dirname(e),i=n.resolve(o,"node_modules"),c=/^\..+\.[^./\\]+$/.test(r)?[r,r.replace(/\.[^./\\]+$/,"")]:[r],l=[".js",".cjs",".mjs"].reduce(function(e,n){return c.forEach(function(r){return e.push(""+r+n,r+"/index"+n)}),e},[]);return l.find(function(e){return t.includes(p(n.resolve(u,e)))})||l.find(function(e){return t.includes(p(n.resolve(i,e)))})||r}(r,c,t,o)+l})},h=function(e){return e.replace(/__dirname/g,"/file:\\/\\/(.+)\\/[^/]/.exec(import.meta.url)[1]")},j=function(e){return e.replace(/__filename/g,"/file:\\/\\/(.+)/.exec(import.meta.url)[1]")},_=function(e){return 0===e.trim().length?"\nexport {}\nexport default undefined\n":e},w=function(e,n,r,t){var o=t.dirnameVar,u=t.filenameVar,i=t.fillBlank,c=e;return t.ext&&(c=y(c,n,r,t.cwd)),o&&(c=h(c)),u&&(c=j(c)),i&&(c=_(c)),c};e.DEFAULT_FIX_OPTIONS=b,e.fix=function(e){try{var r=function(e){return s({},b,e,{debug:"function"==typeof(null==e?void 0:e.debug)?e.debug:!0===(null==e?void 0:e.debug)?console.log:b.debug})}(e),t=r.cwd,u=r.target,i=r.src,l=r.tsconfig,g=r.out,y=r.ext,h=r.debug,j=r.unlink,_=n.resolve(t,void 0===g?t:g),F=d(i),O=[].concat(d(u),v(l,t));h("debug:cwd",t),h("debug:outdir",_),h("debug:sources",F),h("debug:targets",O);var P=F.length>0?F.map(function(e){return e+"/**/*.{ts,tsx}"}):O.map(function(e){return e+"/**/*.js"});return Promise.resolve(o.globby(P,{cwd:t,onlyFiles:!0,absolute:!0})).then(function(e){return Promise.resolve(function(e){try{return Promise.resolve(function(e){return o.globby(["node_modules/*/package.json"],{cwd:e,onlyFiles:!0,absolute:!0}).then(function(e){return e.filter(function(e){return f(e).exports}).map(function(e){return n.basename(n.dirname(e))})})}(e)).then(function(n){return o.globby(["node_modules/**/*.(m|c)?js","!node_modules/.cache","!node_modules/.bin","!node_modules/**/node_modules"].concat(n.map(function(e){return"!node_modules/"+e})),{cwd:e,onlyFiles:!0,absolute:!0})})}catch(e){return Promise.reject(e)}}(t)).then(function(n){h("debug:external-names",n);var o="string"==typeof y?x(e,y):e;h("debug:local-names",o);var u=[].concat(n,o);o.forEach(function(n,o){var l=(i?e[o]:n).replace(p(t),p(_)),s=a(e[o]);!function(e,n){c.default.outputFileSync(e,n,{encoding:"utf8"})}(l,w(s,n,u,r)),!i&&j&&t===_&&l!==e[o]&&m(e[o])})})})}catch(e){return Promise.reject(e)}},e.fixBlankFiles=_,e.fixContents=w,e.fixDirnameVar=h,e.fixFilenameExtensions=x,e.fixFilenameVar=j,e.fixModuleReferences=y}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("node:path"),require("fs-extra"),require("globby"),require("json5")):"function"==typeof define&&define.amd?define(["exports","node:path","fs-extra","globby","json5"],n):n((e||self).tscEsmFix={},e.node_path,e.fsExtra,e.globby,e.json5)}(this,function(e,n,r,t,o){function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=/*#__PURE__*/u(r),c=/*#__PURE__*/u(o);function l(){return l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},l.apply(this,arguments)}var s=function(e){return i.default.readFileSync(e,{encoding:"utf8"})},a=function(e){return c.default.parse(s(e))},f=function(e){return e?Array.isArray(e)?e:[e]:[]},d=i.default.unlinkSync,m=function(e){return e.replace(/\\/g,"/")},p=function e(r){var t=a(r);if(t.extends){var o=e(n.resolve(n.dirname(r),t.extends));return l({},o,t,{compilerOptions:l({},o.compilerOptions,t.compilerOptions)})}return t},g={cwd:process.cwd(),tsconfig:"./tsconfig.json",filenameVar:!0,dirnameVar:!0,ext:!0,unlink:!0,debug:function(){}},b=function(e,r){return f(e).reduce(function(e,t){var o,u,i=p(n.resolve(r,t)),c=null==i||null==(o=i.compilerOptions)?void 0:o.outDir,l=null==i||null==(u=i.compilerOptions)||null==u.module.toLowerCase?void 0:u.module.toLowerCase();return c&&l.startsWith("es")?e.push(c):console.warn("tsconfig should declare `outDir` and `module` type es6 or above"),e},[])},v=function(e,n){return e.map(function(e){return e.replace(/\.[^./\\]+$/,n)})},x=function(e,r,t,o){return e.replace(/(\sfrom\s|[\s(](?:import|require)[ (])(["'])([^"']+\/[^"']+|\.)(["'])/g,function(e,u,i,c,l){return""+u+i+function(e,r,t,o){var u=n.dirname(e),i=n.resolve(o,"node_modules"),c=/^\..+\.[^./\\]+$/.test(r)?[r,r.replace(/\.[^./\\]+$/,"")]:[r],l=[".js",".cjs",".mjs"].reduce(function(e,n){return c.forEach(function(r){return e.push(""+r+n,r+"/index"+n)}),e},[]);return l.find(function(e){return t.includes(m(n.resolve(u,e)))})||l.find(function(e){return t.includes(m(n.resolve(i,e)))})||r}(r,c,t,o)+l})},y=function(e){return e.replace(/__dirname/g,"/file:\\/\\/(.+)\\/[^/]/.exec(import.meta.url)[1]")},h=function(e){return e.replace(/__filename/g,"/file:\\/\\/(.+)/.exec(import.meta.url)[1]")},j=function(e){return 0===e.trim().length?"\nexport {}\nexport default undefined\n":e},_=function(e,n,r,t){var o=t.dirnameVar,u=t.filenameVar,i=t.fillBlank,c=e;return t.ext&&(c=x(c,n,r,t.cwd)),o&&(c=y(c)),u&&(c=h(c)),i&&(c=j(c)),c};e.DEFAULT_FIX_OPTIONS=g,e.fix=function(e){try{var r=function(e){return l({},g,e,{debug:"function"==typeof(null==e?void 0:e.debug)?e.debug:!0===(null==e?void 0:e.debug)?console.log:g.debug})}(e),o=r.cwd,u=r.target,c=r.src,p=r.tsconfig,x=r.out,y=r.ext,h=r.debug,j=r.unlink,w=n.resolve(o,void 0===x?o:x),F=f(c),O=[].concat(f(u),b(p,o));h("debug:cwd",o),h("debug:outdir",w),h("debug:sources",F),h("debug:targets",O);var P=F.length>0?F.map(function(e){return e+"/**/*.{ts,tsx}"}):O.map(function(e){return e+"/**/*.js"});return Promise.resolve(t.globby(P,{cwd:o,onlyFiles:!0,absolute:!0})).then(function(e){return Promise.resolve(function(e){try{return Promise.resolve(function(e){return t.globby(["node_modules/*/package.json"],{cwd:e,onlyFiles:!0,absolute:!0}).then(function(e){return e.filter(function(e){return a(e).exports}).map(function(e){return n.basename(n.dirname(e))})})}(e)).then(function(n){return t.globby(["node_modules/**/*.(m|c)?js","!node_modules/.cache","!node_modules/.bin","!node_modules/**/node_modules"].concat(n.map(function(e){return"!node_modules/"+e})),{cwd:e,onlyFiles:!0,absolute:!0})})}catch(e){return Promise.reject(e)}}(o)).then(function(n){h("debug:external-names",n);var t="string"==typeof y?v(e,y):e;h("debug:local-names",t);var u=[].concat(n,t);t.forEach(function(n,t){var l=(c?e[t]:n).replace(m(o),m(w)),a=s(e[t]);!function(e,n){i.default.outputFileSync(e,n,{encoding:"utf8"})}(l,_(a,n,u,r)),!c&&j&&o===w&&l!==e[t]&&d(e[t])})})})}catch(e){return Promise.reject(e)}},e.fixBlankFiles=j,e.fixContents=_,e.fixDirnameVar=y,e.fixFilenameExtensions=v,e.fixFilenameVar=h,e.fixModuleReferences=x}); | ||
//# sourceMappingURL=tsc-esm-fix.umd.js.map |
/// <reference types="node" /> | ||
import { unlinkSync } from 'fs'; | ||
import fse from 'fs-extra'; | ||
import { globby } from 'globby'; | ||
@@ -10,4 +10,4 @@ import { TSConfig } from './interface'; | ||
export declare const asArray: <T>(value: T | T[] | undefined) => T[]; | ||
export declare const remove: typeof unlinkSync; | ||
export declare const remove: typeof fse.unlinkSync; | ||
export declare const unixify: (path: string) => string; | ||
export declare const resolveTsConfig: (file: string) => TSConfig; |
/// <reference types="node" /> | ||
import { unlinkSync } from 'fs'; | ||
import fse from 'fs-extra'; | ||
import { globby } from 'globby'; | ||
@@ -10,4 +10,4 @@ import { TSConfig } from './interface'; | ||
export declare const asArray: <T>(value: T | T[] | undefined) => T[]; | ||
export declare const remove: typeof unlinkSync; | ||
export declare const remove: typeof fse.unlinkSync; | ||
export declare const unixify: (path: string) => string; | ||
export declare const resolveTsConfig: (file: string) => TSConfig; |
@@ -89,3 +89,3 @@ import { Options as GlobbyOptions } from 'globby' | ||
contents.replace( | ||
/(\sfrom\s|[\s(](?:import|require)[ (])(["'])([^"']+\/[^"']+)(["'])/g, | ||
/(\sfrom\s|[\s(](?:import|require)[ (])(["'])([^"']+\/[^"']+|\.)(["'])/g, | ||
(matched, control, q1, from, q2) => | ||
@@ -92,0 +92,0 @@ `${control}${q1}${resolveDependency( |
@@ -1,2 +0,1 @@ | ||
import { readFileSync, unlinkSync } from 'fs' | ||
import fse from 'fs-extra' | ||
@@ -12,3 +11,3 @@ import { globby } from 'globby' | ||
export const read = (file: string): string => | ||
readFileSync(file, { encoding: 'utf8' }) | ||
fse.readFileSync(file, { encoding: 'utf8' }) | ||
@@ -23,3 +22,3 @@ export const write = (file: string, contents: string): void => | ||
export const remove = unlinkSync | ||
export const remove = fse.unlinkSync | ||
@@ -26,0 +25,0 @@ export const unixify = (path: string): string => path.replace(/\\/g, '/') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
111504
230
5
684