@visulima/tsconfig 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/findTsConfig-BfSXytI1.mjs +1 -0
- package/dist/{shared/implicitBaseUrlSymbol-DTC0mZot.mjs → packem_shared/implicitBaseUrlSymbol-BRzG4WlS.mjs} +1 -1
- package/dist/packem_shared/writeTsConfig-Dwba2y0l.mjs +1 -0
- package/package.json +9 -9
- package/dist/shared/findTsConfig-B8xt1i_T.mjs +0 -1
- package/dist/shared/writeTsConfig-CWU3Vidv.mjs +0 -1
- /package/dist/{shared → packem_shared}/findTsConfig-D2TOrVoT.cjs +0 -0
- /package/dist/{shared → packem_shared}/implicitBaseUrlSymbol-DRKC4-0H.cjs +0 -0
- /package/dist/{shared → packem_shared}/writeTsConfig-D_MA7_Uu.cjs +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## @visulima/tsconfig [1.0.12](https://github.com/visulima/visulima/compare/@visulima/tsconfig@1.0.11...@visulima/tsconfig@1.0.12) (2024-09-11)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* fixed node10 support ([f5e78d9](https://github.com/visulima/visulima/commit/f5e78d9bff8fd603967666598b34f9338a8726b5))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* updated dev dependencies ([28b5ee5](https://github.com/visulima/visulima/commit/28b5ee5c805ca8868536418829cde7ba8c5bb8dd))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* **@visulima/fs:** upgraded to 2.1.17
|
|
15
|
+
* **@visulima/path:** upgraded to 1.0.8
|
|
16
|
+
|
|
17
|
+
## @visulima/tsconfig [1.0.11](https://github.com/visulima/visulima/compare/@visulima/tsconfig@1.0.10...@visulima/tsconfig@1.0.11) (2024-09-07)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* fixed broken chunk splitting from packem ([1aaf277](https://github.com/visulima/visulima/commit/1aaf27779292d637923c5f8a220e18606e78caa2))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* **@visulima/fs:** upgraded to 2.1.16
|
|
27
|
+
* **@visulima/path:** upgraded to 1.0.7
|
|
28
|
+
|
|
1
29
|
## @visulima/tsconfig [1.0.10](https://github.com/visulima/visulima/compare/@visulima/tsconfig@1.0.9...@visulima/tsconfig@1.0.10) (2024-09-07)
|
|
2
30
|
|
|
3
31
|
### Bug Fixes
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./packem_shared/findTsConfig-D2TOrVoT.cjs"),n=require("./packem_shared/implicitBaseUrlSymbol-DRKC4-0H.cjs"),e=require("./packem_shared/writeTsConfig-D_MA7_Uu.cjs");exports.findTsConfig=i.findTsConfig;exports.findTsConfigSync=i.findTsConfigSync;exports.implicitBaseUrlSymbol=n.implicitBaseUrlSymbol;exports.readTsConfig=n.readTsConfig;exports.writeTsConfig=e.writeTsConfig;exports.writeTsConfigSync=e.writeTsConfigSync;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{findTsConfig as f,findTsConfigSync as r}from"./packem_shared/findTsConfig-BfSXytI1.mjs";import{implicitBaseUrlSymbol as e,readTsConfig as s}from"./packem_shared/implicitBaseUrlSymbol-BRzG4WlS.mjs";import{writeTsConfig as g,writeTsConfigSync as m}from"./packem_shared/writeTsConfig-Dwba2y0l.mjs";export{f as findTsConfig,r as findTsConfigSync,e as implicitBaseUrlSymbol,s as readTsConfig,g as writeTsConfig,m as writeTsConfigSync};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=Object.defineProperty;var t=(o,e)=>p(o,"name",{value:e,configurable:!0});import{findUp as r,findUpSync as s}from"@visulima/fs";import{NotFoundError as a}from"@visulima/fs/error";import{readTsConfig as h}from"./implicitBaseUrlSymbol-BRzG4WlS.mjs";var l=Object.defineProperty,g=t((o,e)=>l(o,"name",{value:e,configurable:!0}),"s");const d=new Map,m=g(async(o,e={})=>{const f=e.configFileName??"tsconfig.json";let c=await r(f,{...o&&{cwd:o},type:"file"});if(c||(c=await r("jsconfig.json",{...o&&{cwd:o},type:"file"})),!c)throw new a(`No such file or directory, for ${f} or jsconfig.json found.`);const n=e.cache&&typeof e.cache!="boolean"?e.cache:d;if(e.cache&&n.has(c))return n.get(c);const i={config:h(c),path:c};return e.cache&&n.set(c,i),i},"findTsConfig"),C=g((o,e={})=>{const f=e.configFileName??"tsconfig.json";let c=s(f,{...o&&{cwd:o},type:"file"});if(c||(c=s("jsconfig.json",{...o&&{cwd:o},type:"file"})),!c)throw new a(`No such file or directory, for ${f} or jsconfig.json found.`);const n=e.cache&&typeof e.cache!="boolean"?e.cache:d;if(e.cache&&n.has(c))return n.get(c);const i={config:h(c),path:c};return e.cache&&n.set(c,i),i},"findTsConfigSync");export{m as findTsConfig,C as findTsConfigSync};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var $=Object.defineProperty;var b=(o,
|
|
1
|
+
var $=Object.defineProperty;var b=(o,r)=>$(o,"name",{value:r,configurable:!0});import{readFileSync as j,isAccessibleSync as u,findUpSync as k}from"@visulima/fs";import{NotFoundError as U}from"@visulima/fs/error";import{join as a,resolve as C,isAbsolute as T,toNamespacedPath as J,dirname as A,relative as w,normalize as N}from"@visulima/path";import{parse as P}from"jsonc-parser";import{statSync as x}from"node:fs";import z from"node:module";import{resolveExports as B}from"resolve-pkg-maps";var M=Object.defineProperty,v=b((o,r)=>M(o,"name",{value:r,configurable:!0}),"d");const W=v(o=>P(j(o)),"readJsonc"),R=v(()=>{const{findPnpApi:o}=z;return o?.(process.cwd())},"getPnpApi"),D=v((o,r,p,t)=>{const n="resolveFromPackageJsonPath:"+o+":"+r+":"+(p?"yes":"no");if(t?.has(n))return t.get(n);const e=W(o);if(!e)return;let s=r||"tsconfig.json";if(!p&&e.exports)try{const[c]=B(e.exports,r,["require","types"]);s=c}catch{return!1}else!r&&e.tsconfig&&(s=e.tsconfig);return s=a(o,"..",s),t?.set(n,s),s},"resolveFromPackageJsonPath"),F="package.json",O="tsconfig.json",q=v((o,r,p)=>{let t=o;if(o===".."&&(t=a(t,O)),o.startsWith(".")&&(t=C(r,t)),T(t)){if(u(t)){if(x(t).isFile())return t}else if(!t.endsWith(".json")){const i=`${t}.json`;if(u(i))return i}return}const[n,...e]=o.split("/"),s=n.startsWith("@")?n+"/"+e.shift():n,c=e.join("/"),l=R();if(l){const{resolveRequest:i}=l;try{if(s===o){const f=i(a(s,F),r);if(f){const y=D(f,c,!1,p);if(y&&u(y))return y}}else{let f;try{f=i(o,r,{extensions:[".json"]})}catch{f=i(a(o,O),r)}if(f)return f}}catch{}}const d=k(i=>{const f=a(C(i),"node_modules",s);if(u(f))return a("node_modules",s)},{cwd:r,type:"directory"});if(!d||!x(d).isDirectory())return;const h=a(d,F);if(u(h)){const i=D(h,c,!1,p);if(i===!1)return;if(i&&u(i)&&x(i).isFile())return i}const m=a(d,c),I=m.endsWith(".json");if(!I){const i=m+".json";if(u(i))return i}if(u(m)){if(x(m).isDirectory()){const i=a(m,F);if(u(i)){const y=D(i,"",!0,p);if(y&&u(y))return y}const f=a(m,O);if(u(f))return f}else if(I)return m}},"resolveExtendsPath");var V=Object.defineProperty,g=b((o,r)=>V(o,"name",{value:r,configurable:!0}),"c");const _=g(o=>P(j(o)),"readJsonc"),S=g(o=>J(/^\.{1,2}(?:\/.*)?$/.test(o)?o:`./${o}`),"normalizePath"),G=g((o,r,p,t)=>{const n=q(o,r);if(!n)throw new U(`No such file or directory, for '${o}' found.`);if(p.has(n))throw new Error(`Circularity detected while resolving configuration: ${n}`);p.add(n);const e=A(n),s=E(n,t,p);delete s.references;const{compilerOptions:c}=s;if(c){const l=["baseUrl","outDir"];for(const d of l){const h=c[d];h&&(c[d]=w(r,a(e,h)).replaceAll("\\","/")||"./")}}return s.files&&(s.files=s.files.map(l=>w(r,a(e,l)))),s.include&&(s.include=s.include.map(l=>w(r,a(e,l)))),s.exclude&&(s.exclude=s.exclude.map(l=>w(r,a(e,l)))),s},"resolveExtends"),E=g((o,r,p=new Set)=>{let t;try{t=_(o)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${o}`)}if(typeof t!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${o}`);const n=A(o);if(t.compilerOptions){const{compilerOptions:e}=t;e.paths&&!e.baseUrl&&(e[H]=n)}if(t.extends){const e=Array.isArray(t.extends)?t.extends:[t.extends];delete t.extends;for(const s of e.reverse()){const c=G(s,n,new Set(p),r),l={...c,...t,compilerOptions:{...c.compilerOptions,...t.compilerOptions}};c.watchOptions&&(l.watchOptions={...c.watchOptions,...t.watchOptions}),t=l}}if(t.compilerOptions){const{compilerOptions:e}=t,s=["baseUrl","rootDir"];for(const l of s){const d=e[l];if(d){const h=C(n,d),m=w(n,h);e[l]=S(m)}}const{outDir:c}=e;c&&(Array.isArray(t.exclude)||(t.exclude=[]),t.exclude.includes(c)||t.exclude.push(c),e.outDir=S(c)),r?.tscCompatible&&e.module==="node16"&&(e.allowSyntheticDefaultImports=e.allowSyntheticDefaultImports??!0,e.esModuleInterop=e.esModuleInterop??!0,e.moduleDetection=e.moduleDetection??"force",e.moduleResolution=e.moduleResolution??"node16",e.target=e.target??"es2022",e.useDefineForClassFields=e.useDefineForClassFields??!0),r?.tscCompatible&&e.strict&&(e.noImplicitAny=e.noImplicitAny??!0,e.noImplicitThis=e.noImplicitThis??!0,e.strictNullChecks=e.strictNullChecks??!0,e.strictFunctionTypes=e.strictFunctionTypes??!0,e.strictBindCallApply=e.strictBindCallApply??!0,e.strictPropertyInitialization=e.strictPropertyInitialization??!0,e.alwaysStrict=e.alwaysStrict??!0,e.useUnknownInCatchVariables=e.useUnknownInCatchVariables??!0),r?.tscCompatible&&e.isolatedModules&&(e.preserveConstEnums=e.preserveConstEnums??!0),r?.tscCompatible&&e.esModuleInterop&&(e.allowSyntheticDefaultImports=e.allowSyntheticDefaultImports??!0),r?.tscCompatible&&e.target==="esnext"&&(e.useDefineForClassFields=e.useDefineForClassFields??!0)}else t.compilerOptions={};if(t.files&&(t.files=t.files.map(e=>S(e))),t.include&&(t.include=t.include.map(e=>N(e))),t.watchOptions){const{watchOptions:e}=t;e.excludeDirectories&&(e.excludeDirectories=e.excludeDirectories.map(s=>C(n,s)))}return t},"internalParseTsConfig"),H=Symbol("implicitBaseUrl"),oe=g((o,r)=>E(o,r),"readTsConfig");export{H as implicitBaseUrlSymbol,oe as readTsConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var w=Object.defineProperty;var t=(o,n)=>w(o,"name",{value:n,configurable:!0});import{writeJson as a,writeJsonSync as p}from"@visulima/fs";import{toPath as c}from"@visulima/fs/utils";import{join as e}from"@visulima/path";var g=Object.defineProperty,f=t((o,n)=>g(o,"name",{value:n,configurable:!0}),"r");const C=f(async(o,n={})=>{const{cwd:i,...r}=n,s=c(i??process.cwd());await a(e(s,"tsconfig.json"),o,r)},"writeTsConfig"),T=f((o,n={})=>{const{cwd:i,...r}=n,s=c(i??process.cwd());p(e(s,"tsconfig.json"),o,r)},"writeTsConfigSync");export{C as writeTsConfig,T as writeTsConfigSync};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/tsconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "Find and/or parse the tsconfig.json file from a directory path.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"browser": "./dist/index.mjs",
|
|
56
56
|
"types": "dist/index.d.ts",
|
|
57
57
|
"typesVersions": {
|
|
58
|
-
"
|
|
59
|
-
"
|
|
58
|
+
">=5.0": {
|
|
59
|
+
".": [
|
|
60
60
|
"./dist/index.d.ts"
|
|
61
61
|
]
|
|
62
62
|
}
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"CHANGELOG.md"
|
|
68
68
|
],
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@visulima/fs": "2.1.
|
|
71
|
-
"@visulima/path": "1.0.
|
|
70
|
+
"@visulima/fs": "2.1.17",
|
|
71
|
+
"@visulima/path": "1.0.8",
|
|
72
72
|
"jsonc-parser": "^3.3.1",
|
|
73
73
|
"resolve-pkg-maps": "^1.0.0"
|
|
74
74
|
},
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
"@anolilab/prettier-config": "^5.0.14",
|
|
78
78
|
"@anolilab/semantic-release-pnpm": "1.1.3",
|
|
79
79
|
"@anolilab/semantic-release-preset": "^9.0.0",
|
|
80
|
-
"@arethetypeswrong/cli": "^0.
|
|
80
|
+
"@arethetypeswrong/cli": "^0.16.2",
|
|
81
81
|
"@babel/core": "^7.25.2",
|
|
82
82
|
"@rushstack/eslint-plugin-security": "^0.8.2",
|
|
83
83
|
"@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
|
|
84
84
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
85
85
|
"@types/node": "18.18.14",
|
|
86
|
-
"@visulima/packem": "^1.0.0-alpha.
|
|
86
|
+
"@visulima/packem": "^1.0.0-alpha.108",
|
|
87
87
|
"@vitest/coverage-v8": "^2.0.5",
|
|
88
88
|
"@vitest/ui": "^2.0.5",
|
|
89
89
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"prettier": "^3.3.3",
|
|
101
101
|
"rimraf": "5.0.9",
|
|
102
102
|
"secretlint": "8.2.4",
|
|
103
|
-
"semantic-release": "^24.1.
|
|
103
|
+
"semantic-release": "^24.1.1",
|
|
104
104
|
"strip-ansi": "^7.1.0",
|
|
105
105
|
"tempy": "^3.1.0",
|
|
106
|
-
"type-fest": "^4.26.
|
|
106
|
+
"type-fest": "^4.26.1",
|
|
107
107
|
"typescript": "5.4.5",
|
|
108
108
|
"vitest": "^2.0.5"
|
|
109
109
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var p=Object.defineProperty;var t=(o,e)=>p(o,"name",{value:e,configurable:!0});import{findUp as r,findUpSync as s}from"@visulima/fs";import{NotFoundError as a}from"@visulima/fs/error";import{r as h}from"./implicitBaseUrlSymbol-DTC0mZot.mjs";var l=Object.defineProperty,g=t((o,e)=>l(o,"name",{value:e,configurable:!0}),"s");const d=new Map,m=g(async(o,e={})=>{const f=e.configFileName??"tsconfig.json";let c=await r(f,{...o&&{cwd:o},type:"file"});if(c||(c=await r("jsconfig.json",{...o&&{cwd:o},type:"file"})),!c)throw new a(`No such file or directory, for ${f} or jsconfig.json found.`);const n=e.cache&&typeof e.cache!="boolean"?e.cache:d;if(e.cache&&n.has(c))return n.get(c);const i={config:h(c),path:c};return e.cache&&n.set(c,i),i},"findTsConfig"),C=g((o,e={})=>{const f=e.configFileName??"tsconfig.json";let c=s(f,{...o&&{cwd:o},type:"file"});if(c||(c=s("jsconfig.json",{...o&&{cwd:o},type:"file"})),!c)throw new a(`No such file or directory, for ${f} or jsconfig.json found.`);const n=e.cache&&typeof e.cache!="boolean"?e.cache:d;if(e.cache&&n.has(c))return n.get(c);const i={config:h(c),path:c};return e.cache&&n.set(c,i),i},"findTsConfigSync");export{C as a,m as f};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var t=(o,n)=>w(o,"name",{value:n,configurable:!0});import{writeJson as f,writeJsonSync as p}from"@visulima/fs";import{toPath as c}from"@visulima/fs/utils";import{join as e}from"@visulima/path";var g=Object.defineProperty,a=t((o,n)=>g(o,"name",{value:n,configurable:!0}),"r");const C=a(async(o,n={})=>{const{cwd:s,...i}=n,r=c(s??process.cwd());await f(e(r,"tsconfig.json"),o,i)},"writeTsConfig"),T=a((o,n={})=>{const{cwd:s,...i}=n,r=c(s??process.cwd());p(e(r,"tsconfig.json"),o,i)},"writeTsConfigSync");export{T as a,C as w};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|