jamespot-front-business 1.3.6 → 1.3.7

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/rollup.config.mjs DELETED
@@ -1,47 +0,0 @@
1
- import { createRequire } from 'module';
2
- const require = createRequire(import.meta.url);
3
- import commonjs from '@rollup/plugin-commonjs';
4
- import typescript from '@rollup/plugin-typescript';
5
- import dts from 'rollup-plugin-dts';
6
- const pkg = require('./package.json');
7
- import json from '@rollup/plugin-json';
8
-
9
- function exitAfterBuild() {
10
- return {
11
- name: 'exit-after-build',
12
- closeBundle() {
13
- if (!process.env.ROLLUP_WATCH) {
14
- setImmediate(() => process.exit(0));
15
- }
16
- },
17
- };
18
- }
19
-
20
- export default [
21
- {
22
- input: 'src/index.ts',
23
- output: [
24
- {
25
- file: pkg.main,
26
- format: 'cjs',
27
- sourcemap: true,
28
- },
29
- {
30
- file: pkg.module,
31
- format: 'es',
32
- sourcemap: true,
33
- },
34
- ],
35
- external: ['redux', '@reduxjs/toolkit', 'jamespot-user-api', 'uuid'],
36
- plugins: [json(), commonjs(), typescript()],
37
- },
38
- {
39
- input: 'src/index.ts',
40
- output: {
41
- file: pkg.types,
42
- format: 'es',
43
- },
44
- external: ['redux', '@reduxjs/toolkit', 'jamespot-user-api', 'uuid'],
45
- plugins: [dts(), json(), exitAfterBuild()],
46
- },
47
- ];
package/tsconfig.json DELETED
@@ -1,55 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": [
4
- "dom",
5
- "dom.iterable",
6
- "esnext"
7
- ],
8
- "outDir": "dist",
9
- "removeComments": true,
10
- "target": "esnext",
11
- // Module resolution
12
- "baseUrl": "./", // Lets you set a base directory to resolve non-absolute module names.
13
- "esModuleInterop": true, // fixes some issues TS originally had with the ES6 spec where TypeScript treats CommonJS/AMD/UMD modules similar to ES6 module
14
- "moduleResolution": "node", // Pretty much always node for modern JS. Other option is "classic"
15
- "paths": {}, // A series of entries which re-map imports to lookup locations relative to the baseUrl
16
- "jsx": "react-jsx",
17
- "allowSyntheticDefaultImports": true,
18
- "skipLibCheck": true,
19
- "forceConsistentCasingInFileNames": true,
20
- // Source Map
21
- "sourceMap": true, // enables the use of source maps for debuggers and error reporting etc
22
- "sourceRoot": "/", // Specify the location where a debugger should locate TypeScript files instead of relative source locations.
23
- // Strict Checks
24
- "strict": true,
25
- "allowUnreachableCode": false, // pick up dead code paths
26
- "allowUnusedLabels": false,
27
- "alwaysStrict": true, // Ensures that your files are parsed in the ECMAScript strict mode, and emit “use strict” for each source file.
28
- "exactOptionalPropertyTypes": true,
29
- "noFallthroughCasesInSwitch": true,
30
- "noImplicitAny": true, // In some cases where no type annotations are present, TypeScript will fall back to a type of any for a variable when it cannot infer the type.
31
- "noImplicitOverride": false,
32
- "noImplicitThis": true,
33
- "noImplicitReturns": true,
34
- "noPropertyAccessFromIndexSignature": false,
35
- "noUncheckedIndexedAccess": true, // accessing index must always check for undefined
36
- "noUnusedLocals": true, // Report errors on unused local variables.
37
- "noUnusedParameters": true, // Report errors on unused parameters in functions
38
- "strictBindCallApply": true,
39
- "strictFunctionTypes": true,
40
- "strictNullChecks": true, // When strictNullChecks is true, null and undefined have their own distinct types and you’ll get a type error if you try to use them where a concrete value is expected.
41
- "strictPropertyInitialization": true,
42
- "useUnknownInCatchVariables": true
43
- },
44
- "include": [
45
- "src/**/*"
46
- ],
47
- "exclude": [
48
- ".changeset",
49
- ".github",
50
- "coverage",
51
- "dist",
52
- "node_modules",
53
- "**/*.test.ts",
54
- ],
55
- }