You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,9 @@ This project is forked from https://github.com/nicolaspanel/numjs and does below
8
8
- Remove the feature of images manipulation. You could consider [ndarray-pixels](https://github.com/donmccurdy/ndarray-pixels) if you need this feature.
9
9
- Add TypeScript typings and `.d.ts` is out of box, JavaScript is supported, too. Also, it includes
10
10
- ES6 build (ES2015) with CommonJS module for main build in package.json.
11
-
- ES6 build (ES2015) with ES6 module for module build.
11
+
- ES6 build (ES2015) with ES6 module for module build. Some tools will follow the module field in package.json, like Rollup, Webpack, or Parcel. It is good to let build tools can tree-shake this module build to import only the code they need.
12
12
- Refactor internal code via ES6 syntax and does not change the core algorithm code.
// "listEmittedFiles": false /* Print names of generated files part of the compilation. */,
16
-
// "listFiles": false /* Print names of files part of the compilation. */,
17
-
// "pretty": true /* Stylize errors and messages using color and context. */,
18
-
// /* Experimental Options */
19
-
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
20
-
"module": "esnext",
21
-
"lib": [
22
-
"dom",
23
-
"esnext"
24
-
],
25
-
"importHelpers": true,
26
-
// output .d.ts declaration files for consumers
27
-
"declaration": true,
28
-
// output .js.map sourcemap files for consumers
29
-
"sourceMap": true,
30
-
// match output dir to input dir. e.g. dist/index instead of dist/src/index
31
-
"rootDir": "./src",
32
-
// stricter type-checking for stronger correctness. Recommended by TS
33
-
"strict": false, // turn off temporarily
34
-
// linter checks for common issues
35
-
"noImplicitReturns": false, // turn off temporarily
36
-
"noFallthroughCasesInSwitch": true,
37
-
// noUnused* overlap with @typescript-eslint/no-unused-vars, can disable if duplicative
38
-
"noUnusedLocals": false, // turn off temporarily
39
-
"noUnusedParameters": false, // turn off temporarily
40
-
// use Node's module resolution algorithm, instead of the legacy TS one
5
+
"outDir": "build/main",
6
+
"rootDir": "src",
41
7
"moduleResolution": "node",
42
-
// transpile JSX to React.createElement
43
-
"jsx": "react",
44
-
// interop between ESM and CJS modules. Recommended by TS
45
-
"esModuleInterop": true,
46
-
// significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS
47
-
"skipLibCheck": true,
48
-
// error out if import and file system have a casing mismatch. Recommended by TS
49
-
"forceConsistentCasingInFileNames": true,
50
-
// `tsdx build` ignores this option, but it is commonly used when type-checking separately with `tsc`
51
-
"noEmit": true,
52
-
}
53
-
}
8
+
"module": "commonjs",
9
+
"declaration": true,
10
+
"inlineSourceMap": true,
11
+
"esModuleInterop": true/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
12
+
"resolveJsonModule": true/* Include modules imported with .json extension. */,
13
+
14
+
// "strict": true /* Enable all strict type-checking options. */,
15
+
16
+
/* Strict Type-Checking Options */
17
+
// "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
0 commit comments