cross-import
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -1,2 +0,2 @@ | ||
var d=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var P=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of g(e))!y.call(r,s)&&s!==t&&i(r,s,{get:()=>e[s],enumerable:!(o=h(e,s))||o.enumerable});return r};var n=(r,e,t)=>(t=r!=null?d(v(r)):{},f(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),w=r=>f(i({},"__esModule",{value:!0}),r);var x={};P(x,{crossImport:()=>u,default:()=>u});module.exports=w(x);var c=n(require("path")),m=n(require("fast-glob")),a=n(require("@techor/extend")),p=n(require("jiti")),l=require("sucrase");function u(r,e){if(e=(0,a.default)({cwd:process.cwd()},e),!r)return;let t=m.default.sync(r,e)[0];if(!t)return;let o=c.default.resolve(e.cwd,t);process.env.DEBUG&&console.log("[crossImport] resolvedFilePath:",o);try{return delete require.cache[o],require(o)}catch{return(0,p.default)(__dirname,{interopDefault:!0,transform:s=>(0,l.transform)(s.source,{transforms:["imports","typescript"]})})(o)}}0&&(module.exports={crossImport}); | ||
var d=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var P=(r,e)=>{for(var t in e)f(r,t,{get:e[t],enumerable:!0})},n=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of g(e))!y.call(r,s)&&s!==t&&f(r,s,{get:()=>e[s],enumerable:!(o=h(e,s))||o.enumerable});return r};var i=(r,e,t)=>(t=r!=null?d(v(r)):{},n(e||!r||!r.__esModule?f(t,"default",{value:r,enumerable:!0}):t,r)),w=r=>n(f({},"__esModule",{value:!0}),r);var x={};P(x,{crossImport:()=>u,default:()=>u});module.exports=w(x);var c=i(require("path")),m=i(require("fast-glob")),a=i(require("@techor/extend")),p=i(require("jiti")),l=require("sucrase");function u(r,e){if(e=(0,a.default)({cwd:process.cwd()},e),!r)return;let t=m.default.sync(r,e)[0];if(!t)return;let o=c.default.resolve(e.cwd,t);process.env.DEBUG&&console.log("[crossImport] resolvedFilePath:",o);try{return delete require.cache[o],require(o)}catch{return(0,p.default)(__filename,{interopDefault:!0,transform:s=>(0,l.transform)(s.source,{transforms:["imports","typescript"]})})(o)}}0&&(module.exports={crossImport}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
{"name":"cross-import","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node --external:esbuild --external:fast-glob --external:jiti --external:@techor/extend --external:sucrase --external:upath","build:esm":"esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --minify --sourcemap --platform=node --external:esbuild --external:fast-glob --external:jiti --external:@techor/extend --external:sucrase --external:upath","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:esm && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"node -r sucrase/register ./tests/real && jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Import .ts, .mjs, .cjs files across environments as JavaScript modules","author":{"name":"Aron","email":"i@aron.tw","url":"http://aron.tw"},"homepage":"https://aron.tw","bugs":{"url":"https://github.com/1aron/utils/issues"},"repository":{"type":"git","url":"https://github.com/1aron/utils.git","directory":"packages/read-module"},"keywords":["cjs","mjs","config","utils","module","read","cross","environments","esm","commonjs","ts","typescript"],"sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"dependencies":{"@techor/extend":"^2.2.5","fast-glob":"^3.2.12","jiti":"^1.18.2","sucrase":"^3.32.0","upath":"^2.0.1"},"version":"2.2.5"} | ||
{"name":"cross-import","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node --external:esbuild --external:fast-glob --external:jiti --external:@techor/extend --external:sucrase --external:upath","build:esm":"esbuild src/index.ts --bundle --outfile=dist/index.esm.mjs --format=esm --minify --sourcemap --platform=node --external:esbuild --external:fast-glob --external:jiti --external:@techor/extend --external:sucrase --external:upath","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:esm && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"node -r sucrase/register ./tests/real && jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Import .ts, .mjs, .cjs files across environments as JavaScript modules","author":{"name":"Aron","email":"i@aron.tw","url":"http://aron.tw"},"homepage":"https://aron.tw","bugs":{"url":"https://github.com/1aron/utils/issues"},"repository":{"type":"git","url":"https://github.com/1aron/utils.git","directory":"packages/read-module"},"keywords":["cjs","mjs","config","utils","module","read","cross","environments","esm","commonjs","ts","typescript"],"sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","jsnext:main":"./dist/index.esm.mjs","esnext":"./dist/index.esm.mjs","module":"./dist/index.esm.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.esm.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"dependencies":{"@techor/extend":"^2.2.6","fast-glob":"^3.2.12","jiti":"^1.18.2","sucrase":"^3.32.0","upath":"^2.0.1"},"version":"2.2.6"} |
Sorry, the diff of this file is not supported yet
13104
8
16
1
Updated@techor/extend@^2.2.6