@isdk/json-repair 0.1.1

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/tsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "declaration": true,
7
+ "outDir": "./dist",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true
12
+ },
13
+ "exclude": [
14
+ "node_modules",
15
+ "**/*.spec.ts",
16
+ "**/*.test.ts"
17
+ ],
18
+ "include": ["src/**/*"]
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "types": ["jest", "node"],
4
+ "target": "es2020",
5
+ "module": "esnext",
6
+ "moduleResolution": "node",
7
+ "strict": true,
8
+ "typeRoots": ["./node_modules/@types", "./types"],
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "noUnusedLocals": true,
12
+ "noImplicitAny": true,
13
+ "resolveJsonModule": true
14
+ },
15
+ "exclude": [
16
+ "node_modules",
17
+ "**/*.spec.ts"
18
+ ]
19
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,34 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ format: ['cjs', 'esm'],
6
+ // Inject cjs and esm shims:https://tsup.egoist.dev/#inject-cjs-and-esm-shims
7
+ shims: true,
8
+ // splitting: true,
9
+ // sourcemap: true,
10
+ // clean: true,
11
+ minify: 'terser',
12
+ terserOptions: {
13
+ // compress: {
14
+ // drop_console: true,
15
+ // drop_debugger: true,
16
+ // },
17
+ // https://terser.org/docs/options/#mangle-options
18
+ "mangle": {
19
+ "properties": {
20
+ "regex": /^_[$]/,
21
+ // "undeclared": true, // Mangle those names when they are accessed as properties of known top level variables but their declarations are never found in input code.
22
+ },
23
+ "toplevel": true,
24
+ "reserved": [
25
+ // # expected names in web-extension content
26
+ "WeakSet", "Set",
27
+ // # expected names in 3rd-party extensions' contents
28
+ "requestIdleCallback",
29
+ // # content global names:
30
+ "browser",
31
+ ],
32
+ }
33
+ },
34
+ })
@@ -0,0 +1,7 @@
1
+ /** @type {import('typedoc').TypeDocOptions} */
2
+ module.exports = {
3
+ entryPoints: ['./src/index.ts'],
4
+ externalSymbolLinkMappings: {
5
+ "events-ex": { "EventEmitter": "#" }
6
+ },
7
+ }
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from 'vite'
2
+ import tsconfigPaths from 'vite-tsconfig-paths';
3
+
4
+ export default defineConfig({
5
+ plugins: [tsconfigPaths({
6
+ projects: ['./tsconfig.spec.json'],
7
+ })],
8
+ test: {
9
+ include: ['src/**/*.spec.ts', 'src/**/*.test.ts', 'test/*.spec.ts', 'test/*.test.ts'],
10
+ testTimeout: 80000,
11
+ globals: true,
12
+ "setupFiles": [
13
+ "./setupVitest.mjs"
14
+ ],
15
+ },
16
+ })