@visulima/fs 2.3.7 → 2.3.8
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 +16 -0
- package/README.md +1377 -1029
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -6
- package/dist/packem_shared/{writeFile-DKu5-M8x.cjs → writeFile-CnWc2ZOW.cjs} +3 -3
- package/dist/packem_shared/{writeFile-B7dhfseN.mjs → writeFile-CzpkxDqy.mjs} +3 -3
- package/dist/packem_shared/{writeFileSync-mMGYqOc8.mjs → writeFileSync-DYRpumrj.mjs} +3 -3
- package/dist/packem_shared/{writeFileSync-Db6pmY0q.cjs → writeFileSync-da4qD9Nz.cjs} +3 -3
- package/dist/packem_shared/{writeJson-DtnnjTix.cjs → writeJson-9_C3v2B3.cjs} +1 -1
- package/dist/packem_shared/{writeJson-BSQE2uFN.mjs → writeJson-V9KBXfw2.mjs} +1 -1
- package/dist/packem_shared/{writeJsonSync-Dz5-B2PD.cjs → writeJsonSync-C5kkxqE7.cjs} +1 -1
- package/dist/packem_shared/{writeJsonSync-C_i6LsGT.mjs → writeJsonSync-CyaXNy3X.mjs} +1 -1
- package/dist/packem_shared/{writeYaml-B-KoZN0E.cjs → writeYaml-DDLK7NDr.cjs} +1 -1
- package/dist/packem_shared/{writeYaml-DSTzKc0_.mjs → writeYaml-DJ17fqNj.mjs} +1 -1
- package/dist/packem_shared/{writeYamlSync-agxYIea0.mjs → writeYamlSync-C6nrcP2e.mjs} +1 -1
- package/dist/packem_shared/{writeYamlSync-D6borSP1.cjs → writeYamlSync-DST-W6N7.cjs} +1 -1
- package/package.json +1 -73
package/dist/index.cjs
CHANGED
|
@@ -31,12 +31,12 @@ const emptyDir = require('./packem_shared/emptyDir-DcCfiNcf.cjs');
|
|
|
31
31
|
const emptyDirSync = require('./packem_shared/emptyDirSync-BoknkGUe.cjs');
|
|
32
32
|
const remove = require('./packem_shared/remove-BpDiVPns.cjs');
|
|
33
33
|
const removeSync = require('./packem_shared/removeSync-BosXW624.cjs');
|
|
34
|
-
const writeFile = require('./packem_shared/writeFile-
|
|
35
|
-
const writeFileSync = require('./packem_shared/writeFileSync-
|
|
36
|
-
const writeJson = require('./packem_shared/writeJson-
|
|
37
|
-
const writeJsonSync = require('./packem_shared/writeJsonSync-
|
|
38
|
-
const writeYaml = require('./packem_shared/writeYaml-
|
|
39
|
-
const writeYamlSync = require('./packem_shared/writeYamlSync-
|
|
34
|
+
const writeFile = require('./packem_shared/writeFile-CnWc2ZOW.cjs');
|
|
35
|
+
const writeFileSync = require('./packem_shared/writeFileSync-da4qD9Nz.cjs');
|
|
36
|
+
const writeJson = require('./packem_shared/writeJson-9_C3v2B3.cjs');
|
|
37
|
+
const writeJsonSync = require('./packem_shared/writeJsonSync-C5kkxqE7.cjs');
|
|
38
|
+
const writeYaml = require('./packem_shared/writeYaml-DDLK7NDr.cjs');
|
|
39
|
+
const writeYamlSync = require('./packem_shared/writeYamlSync-DST-W6N7.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
package/dist/index.d.cts
CHANGED
|
@@ -64,7 +64,7 @@ declare const readFile: <O extends ReadFileOptions<keyof typeof decompressionMet
|
|
|
64
64
|
declare const decompressionMethods: {
|
|
65
65
|
readonly brotli: typeof brotliDecompressSync;
|
|
66
66
|
readonly gzip: typeof unzipSync;
|
|
67
|
-
readonly none: (buffer: Buffer) => Buffer
|
|
67
|
+
readonly none: (buffer: Buffer) => Buffer<ArrayBufferLike>;
|
|
68
68
|
};
|
|
69
69
|
declare const readFileSync: <O extends ReadFileOptions<keyof typeof decompressionMethods> | undefined = undefined>(path: URL | string, options?: O) => ContentType<O>;
|
|
70
70
|
|
package/dist/index.d.mts
CHANGED
|
@@ -64,7 +64,7 @@ declare const readFile: <O extends ReadFileOptions<keyof typeof decompressionMet
|
|
|
64
64
|
declare const decompressionMethods: {
|
|
65
65
|
readonly brotli: typeof brotliDecompressSync;
|
|
66
66
|
readonly gzip: typeof unzipSync;
|
|
67
|
-
readonly none: (buffer: Buffer) => Buffer
|
|
67
|
+
readonly none: (buffer: Buffer) => Buffer<ArrayBufferLike>;
|
|
68
68
|
};
|
|
69
69
|
declare const readFileSync: <O extends ReadFileOptions<keyof typeof decompressionMethods> | undefined = undefined>(path: URL | string, options?: O) => ContentType<O>;
|
|
70
70
|
|
package/dist/index.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ declare const readFile: <O extends ReadFileOptions<keyof typeof decompressionMet
|
|
|
64
64
|
declare const decompressionMethods: {
|
|
65
65
|
readonly brotli: typeof brotliDecompressSync;
|
|
66
66
|
readonly gzip: typeof unzipSync;
|
|
67
|
-
readonly none: (buffer: Buffer) => Buffer
|
|
67
|
+
readonly none: (buffer: Buffer) => Buffer<ArrayBufferLike>;
|
|
68
68
|
};
|
|
69
69
|
declare const readFileSync: <O extends ReadFileOptions<keyof typeof decompressionMethods> | undefined = undefined>(path: URL | string, options?: O) => ContentType<O>;
|
|
70
70
|
|
package/dist/index.mjs
CHANGED
|
@@ -27,9 +27,9 @@ export { default as emptyDir } from './packem_shared/emptyDir-Dw5xSBox.mjs';
|
|
|
27
27
|
export { default as emptyDirSync } from './packem_shared/emptyDirSync-DTGPXQ3v.mjs';
|
|
28
28
|
export { default as remove } from './packem_shared/remove-B2nxUObP.mjs';
|
|
29
29
|
export { default as removeSync } from './packem_shared/removeSync-C87yepDI.mjs';
|
|
30
|
-
export { default as writeFile } from './packem_shared/writeFile-
|
|
31
|
-
export { default as writeFileSync } from './packem_shared/writeFileSync-
|
|
32
|
-
export { default as writeJson } from './packem_shared/writeJson-
|
|
33
|
-
export { default as writeJsonSync } from './packem_shared/writeJsonSync-
|
|
34
|
-
export { default as writeYaml } from './packem_shared/writeYaml-
|
|
35
|
-
export { default as writeYamlSync } from './packem_shared/writeYamlSync-
|
|
30
|
+
export { default as writeFile } from './packem_shared/writeFile-CzpkxDqy.mjs';
|
|
31
|
+
export { default as writeFileSync } from './packem_shared/writeFileSync-DYRpumrj.mjs';
|
|
32
|
+
export { default as writeJson } from './packem_shared/writeJson-V9KBXfw2.mjs';
|
|
33
|
+
export { default as writeJsonSync } from './packem_shared/writeJsonSync-CyaXNy3X.mjs';
|
|
34
|
+
export { default as writeYaml } from './packem_shared/writeYaml-DJ17fqNj.mjs';
|
|
35
|
+
export { default as writeYamlSync } from './packem_shared/writeYamlSync-C6nrcP2e.mjs';
|
|
@@ -22,6 +22,7 @@ const writeFile = /* @__PURE__ */ __name(async (path$1, content, options) => {
|
|
|
22
22
|
assertValidFileOrDirectoryPath(path$1);
|
|
23
23
|
assertValidFileContents(content);
|
|
24
24
|
path$1 = utils.toPath(path$1);
|
|
25
|
+
const temporaryPath = `${path$1}.tmp`;
|
|
25
26
|
try {
|
|
26
27
|
const pathExists = await isAccessible(path$1, F_OK.F_OK);
|
|
27
28
|
if (!pathExists && options.recursive) {
|
|
@@ -31,7 +32,7 @@ const writeFile = /* @__PURE__ */ __name(async (path$1, content, options) => {
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
let stat;
|
|
34
|
-
await promises.writeFile(
|
|
35
|
+
await promises.writeFile(temporaryPath, toUint8Array.toUint8Array(content), { encoding: options.encoding, flag: options.flag });
|
|
35
36
|
if (pathExists && !options.overwrite) {
|
|
36
37
|
stat = await promises.stat(path$1);
|
|
37
38
|
if (options.chown === undefined) {
|
|
@@ -39,7 +40,6 @@ const writeFile = /* @__PURE__ */ __name(async (path$1, content, options) => {
|
|
|
39
40
|
}
|
|
40
41
|
await promises.rename(path$1, `${path$1}.bak`);
|
|
41
42
|
}
|
|
42
|
-
const temporaryPath = `${path$1}.tmp`;
|
|
43
43
|
if (options.chown) {
|
|
44
44
|
try {
|
|
45
45
|
await promises.chown(temporaryPath, options.chown.uid, options.chown.gid);
|
|
@@ -51,7 +51,7 @@ const writeFile = /* @__PURE__ */ __name(async (path$1, content, options) => {
|
|
|
51
51
|
} catch (error) {
|
|
52
52
|
throw new Error(`Failed to write file at: ${path$1} - ${error.message}`, { cause: error });
|
|
53
53
|
} finally {
|
|
54
|
-
if (await isAccessible(
|
|
54
|
+
if (await isAccessible(temporaryPath)) {
|
|
55
55
|
await promises.unlink(`${path$1}.tmp`);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -20,6 +20,7 @@ const writeFile = /* @__PURE__ */ __name(async (path, content, options) => {
|
|
|
20
20
|
assertValidFileOrDirectoryPath(path);
|
|
21
21
|
assertValidFileContents(content);
|
|
22
22
|
path = toPath(path);
|
|
23
|
+
const temporaryPath = `${path}.tmp`;
|
|
23
24
|
try {
|
|
24
25
|
const pathExists = await isAccessible(path, F_OK);
|
|
25
26
|
if (!pathExists && options.recursive) {
|
|
@@ -29,7 +30,7 @@ const writeFile = /* @__PURE__ */ __name(async (path, content, options) => {
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
let stat$1;
|
|
32
|
-
await writeFile$1(
|
|
33
|
+
await writeFile$1(temporaryPath, toUint8Array(content), { encoding: options.encoding, flag: options.flag });
|
|
33
34
|
if (pathExists && !options.overwrite) {
|
|
34
35
|
stat$1 = await stat(path);
|
|
35
36
|
if (options.chown === undefined) {
|
|
@@ -37,7 +38,6 @@ const writeFile = /* @__PURE__ */ __name(async (path, content, options) => {
|
|
|
37
38
|
}
|
|
38
39
|
await rename(path, `${path}.bak`);
|
|
39
40
|
}
|
|
40
|
-
const temporaryPath = `${path}.tmp`;
|
|
41
41
|
if (options.chown) {
|
|
42
42
|
try {
|
|
43
43
|
await chown(temporaryPath, options.chown.uid, options.chown.gid);
|
|
@@ -49,7 +49,7 @@ const writeFile = /* @__PURE__ */ __name(async (path, content, options) => {
|
|
|
49
49
|
} catch (error) {
|
|
50
50
|
throw new Error(`Failed to write file at: ${path} - ${error.message}`, { cause: error });
|
|
51
51
|
} finally {
|
|
52
|
-
if (await isAccessible(
|
|
52
|
+
if (await isAccessible(temporaryPath)) {
|
|
53
53
|
await unlink(`${path}.tmp`);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -20,6 +20,7 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
20
20
|
assertValidFileOrDirectoryPath(path);
|
|
21
21
|
assertValidFileContents(content);
|
|
22
22
|
path = toPath(path);
|
|
23
|
+
const temporaryPath = `${path}.tmp`;
|
|
23
24
|
try {
|
|
24
25
|
const pathExists = isAccessibleSync(path, F_OK);
|
|
25
26
|
if (!pathExists && options.recursive) {
|
|
@@ -29,7 +30,7 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
let stat;
|
|
32
|
-
writeFileSync$1(
|
|
33
|
+
writeFileSync$1(temporaryPath, toUint8Array(content), { encoding: options.encoding, flag: options.flag });
|
|
33
34
|
if (pathExists && !options.overwrite) {
|
|
34
35
|
stat = statSync(path);
|
|
35
36
|
if (options.chown === undefined) {
|
|
@@ -37,7 +38,6 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
37
38
|
}
|
|
38
39
|
renameSync(path, `${path}.bak`);
|
|
39
40
|
}
|
|
40
|
-
const temporaryPath = `${path}.tmp`;
|
|
41
41
|
if (options.chown) {
|
|
42
42
|
try {
|
|
43
43
|
chownSync(temporaryPath, options.chown.uid, options.chown.gid);
|
|
@@ -49,7 +49,7 @@ const writeFileSync = /* @__PURE__ */ __name((path, content, options) => {
|
|
|
49
49
|
} catch (error) {
|
|
50
50
|
throw new Error(`Failed to write file at: ${path} - ${error.message}`, { cause: error });
|
|
51
51
|
} finally {
|
|
52
|
-
if (isAccessibleSync(
|
|
52
|
+
if (isAccessibleSync(temporaryPath)) {
|
|
53
53
|
unlinkSync(`${path}.tmp`);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -22,6 +22,7 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
22
22
|
assertValidFileOrDirectoryPath(path$1);
|
|
23
23
|
assertValidFileContents(content);
|
|
24
24
|
path$1 = utils.toPath(path$1);
|
|
25
|
+
const temporaryPath = `${path$1}.tmp`;
|
|
25
26
|
try {
|
|
26
27
|
const pathExists = isAccessibleSync(path$1, F_OK.F_OK);
|
|
27
28
|
if (!pathExists && options.recursive) {
|
|
@@ -31,7 +32,7 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
let stat;
|
|
34
|
-
node_fs.writeFileSync(
|
|
35
|
+
node_fs.writeFileSync(temporaryPath, toUint8Array.toUint8Array(content), { encoding: options.encoding, flag: options.flag });
|
|
35
36
|
if (pathExists && !options.overwrite) {
|
|
36
37
|
stat = node_fs.statSync(path$1);
|
|
37
38
|
if (options.chown === undefined) {
|
|
@@ -39,7 +40,6 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
39
40
|
}
|
|
40
41
|
node_fs.renameSync(path$1, `${path$1}.bak`);
|
|
41
42
|
}
|
|
42
|
-
const temporaryPath = `${path$1}.tmp`;
|
|
43
43
|
if (options.chown) {
|
|
44
44
|
try {
|
|
45
45
|
node_fs.chownSync(temporaryPath, options.chown.uid, options.chown.gid);
|
|
@@ -51,7 +51,7 @@ const writeFileSync = /* @__PURE__ */ __name((path$1, content, options) => {
|
|
|
51
51
|
} catch (error) {
|
|
52
52
|
throw new Error(`Failed to write file at: ${path$1} - ${error.message}`, { cause: error });
|
|
53
53
|
} finally {
|
|
54
|
-
if (isAccessibleSync(
|
|
54
|
+
if (isAccessibleSync(temporaryPath)) {
|
|
55
55
|
node_fs.unlinkSync(`${path$1}.tmp`);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -4,7 +4,7 @@ const promises = require('node:fs/promises');
|
|
|
4
4
|
const index = require('./index-ngvEMjBI.cjs');
|
|
5
5
|
const F_OK = require('./F_OK-CWSqQIdF.cjs');
|
|
6
6
|
const isAccessible = require('./isAccessible-ZNVGsSb7.cjs');
|
|
7
|
-
const writeFile = require('./writeFile-
|
|
7
|
+
const writeFile = require('./writeFile-CnWc2ZOW.cjs');
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -2,7 +2,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
2
2
|
import { d as detectIndent } from './index-ajT9ecry.mjs';
|
|
3
3
|
import { R_OK } from './F_OK-JER1LjUr.mjs';
|
|
4
4
|
import isAccessible from './isAccessible-Bonsm1Ez.mjs';
|
|
5
|
-
import writeFile from './writeFile-
|
|
5
|
+
import writeFile from './writeFile-CzpkxDqy.mjs';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -4,7 +4,7 @@ const node_fs = require('node:fs');
|
|
|
4
4
|
const index = require('./index-ngvEMjBI.cjs');
|
|
5
5
|
const F_OK = require('./F_OK-CWSqQIdF.cjs');
|
|
6
6
|
const isAccessibleSync = require('./isAccessibleSync-VWjQa-US.cjs');
|
|
7
|
-
const writeFileSync = require('./writeFileSync-
|
|
7
|
+
const writeFileSync = require('./writeFileSync-da4qD9Nz.cjs');
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs';
|
|
|
2
2
|
import { d as detectIndent } from './index-ajT9ecry.mjs';
|
|
3
3
|
import { R_OK } from './F_OK-JER1LjUr.mjs';
|
|
4
4
|
import isAccessibleSync from './isAccessibleSync-3gnUWUwX.mjs';
|
|
5
|
-
import writeFileSync from './writeFileSync-
|
|
5
|
+
import writeFileSync from './writeFileSync-DYRpumrj.mjs';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const yaml = require('yaml');
|
|
4
|
-
const writeFile = require('./writeFile-
|
|
4
|
+
const writeFile = require('./writeFile-CnWc2ZOW.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'yaml';
|
|
2
|
-
import writeFile from './writeFile-
|
|
2
|
+
import writeFile from './writeFile-CzpkxDqy.mjs';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'yaml';
|
|
2
|
-
import writeFileSync from './writeFileSync-
|
|
2
|
+
import writeFileSync from './writeFileSync-DYRpumrj.mjs';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const yaml = require('yaml');
|
|
4
|
-
const writeFileSync = require('./writeFileSync-
|
|
4
|
+
const writeFileSync = require('./writeFileSync-da4qD9Nz.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/fs",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8",
|
|
4
4
|
"description": "Human friendly file system utilities for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -135,44 +135,6 @@
|
|
|
135
135
|
"@visulima/path": "1.3.3",
|
|
136
136
|
"yaml": "^2.7.0"
|
|
137
137
|
},
|
|
138
|
-
"devDependencies": {
|
|
139
|
-
"@anolilab/eslint-config": "^15.0.3",
|
|
140
|
-
"@anolilab/prettier-config": "^5.0.14",
|
|
141
|
-
"@anolilab/semantic-release-pnpm": "^1.1.6",
|
|
142
|
-
"@anolilab/semantic-release-preset": "^9.0.3",
|
|
143
|
-
"@arethetypeswrong/cli": "^0.17.2",
|
|
144
|
-
"@babel/core": "^7.26.0",
|
|
145
|
-
"@rushstack/eslint-plugin-security": "^0.8.3",
|
|
146
|
-
"@types/node": "18.19.15",
|
|
147
|
-
"@visulima/error": "4.4.13",
|
|
148
|
-
"@visulima/packem": "1.10.7",
|
|
149
|
-
"@vitest/coverage-v8": "^2.1.8",
|
|
150
|
-
"@vitest/ui": "^2.1.8",
|
|
151
|
-
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
152
|
-
"cross-env": "^7.0.3",
|
|
153
|
-
"detect-indent": "^7.0.1",
|
|
154
|
-
"esbuild": "0.24.2",
|
|
155
|
-
"eslint": "8.57.0",
|
|
156
|
-
"eslint-plugin-deprecation": "^3.0.0",
|
|
157
|
-
"eslint-plugin-etc": "^2.0.3",
|
|
158
|
-
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
|
|
159
|
-
"eslint-plugin-mdx": "^3.1.5",
|
|
160
|
-
"eslint-plugin-vitest": "^0.5.4",
|
|
161
|
-
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
162
|
-
"fast-safe-stringify": "2.1.1",
|
|
163
|
-
"prettier": "^3.4.2",
|
|
164
|
-
"redos-detector": "^6.1.2",
|
|
165
|
-
"rimraf": "6.0.1",
|
|
166
|
-
"safe-regex2": "^4.0.1",
|
|
167
|
-
"semantic-release": "24.2.1",
|
|
168
|
-
"tempy": "^3.1.0",
|
|
169
|
-
"type-fest": "^4.32.0",
|
|
170
|
-
"typedoc": "0.27.6",
|
|
171
|
-
"typedoc-plugin-markdown": "4.4.1",
|
|
172
|
-
"typedoc-plugin-rename-defaults": "0.7.2",
|
|
173
|
-
"typescript": "5.7.3",
|
|
174
|
-
"vitest": "^2.1.8"
|
|
175
|
-
},
|
|
176
138
|
"engines": {
|
|
177
139
|
"node": ">=18.* <=23.*"
|
|
178
140
|
},
|
|
@@ -184,39 +146,5 @@
|
|
|
184
146
|
"publishConfig": {
|
|
185
147
|
"access": "public",
|
|
186
148
|
"provenance": true
|
|
187
|
-
},
|
|
188
|
-
"anolilab": {
|
|
189
|
-
"eslint-config": {
|
|
190
|
-
"plugin": {
|
|
191
|
-
"tsdoc": false
|
|
192
|
-
},
|
|
193
|
-
"warn_on_unsupported_typescript_version": false,
|
|
194
|
-
"info_on_disabling_jsx_react_rule": false,
|
|
195
|
-
"info_on_disabling_prettier_conflict_rule": false,
|
|
196
|
-
"info_on_disabling_jsonc_sort_keys_rule": false,
|
|
197
|
-
"info_on_disabling_etc_no_deprecated": false
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"sources": [
|
|
201
|
-
"src/index.ts",
|
|
202
|
-
"src/error.ts",
|
|
203
|
-
"src/utils.ts"
|
|
204
|
-
],
|
|
205
|
-
"scripts": {
|
|
206
|
-
"build": "cross-env NODE_ENV=development packem build",
|
|
207
|
-
"build:prod": "cross-env NODE_ENV=production packem build",
|
|
208
|
-
"clean": "rimraf node_modules dist .eslintcache",
|
|
209
|
-
"dev": "pnpm run build --watch",
|
|
210
|
-
"lint:attw": "attw --pack",
|
|
211
|
-
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
|
|
212
|
-
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
|
|
213
|
-
"lint:package-json": "publint --strict",
|
|
214
|
-
"lint:prettier": "prettier --config=.prettierrc.cjs --check .",
|
|
215
|
-
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
|
|
216
|
-
"lint:types": "tsc --noEmit",
|
|
217
|
-
"test": "vitest run",
|
|
218
|
-
"test:coverage": "vitest run --coverage",
|
|
219
|
-
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
220
|
-
"test:watch": "vitest"
|
|
221
149
|
}
|
|
222
150
|
}
|