@oak-digital/types-4-strapi-2 0.1.1 → 0.1.2

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.
@@ -1,19 +0,0 @@
1
- import { readdir } from "fs/promises";
2
-
3
- export function pascalCase(name: string) {
4
- const words = name.match(/[a-z]+/gi);
5
- const pascalName = words.map((word: string) => {
6
- return word.charAt(0).toUpperCase() + word.substring(1).toLowerCase();
7
- }).join("");
8
- // console.log(pascalName)
9
- return pascalName;
10
- }
11
-
12
- export async function readDirFiltered(dir: string) {
13
- const folders = await readdir(dir);
14
- return folders.filter((folder: string) => !folder.startsWith("."));
15
- }
16
-
17
- export function prefixDotSlash(path) {
18
- return (/^\.?\.\//).test(path) ? path : "./" + path;
19
- }
package/tsconfig.jsonc DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "incremental": true, /* Enable incremental compilation */
4
- "target": "es5", /* Specify ECMAScript target version: */
5
- "module": "commonjs", /* 'none', 'commonjs', 'amd', 'system', etc */
6
- "declaration": true, /* Concatenate & emit output to single file.*/
7
- "outDir": "lib", /* Redirect output to the directory. */
8
- "types": [ "node" ],
9
- "resolveJsonModule": true,
10
- "esModuleInterop": true, /* Enables intero between CommonJS and ES */
11
- "skipLibCheck": true /* Skip type checking of declaration files. */
12
- },
13
- "include": [ "src/**/*" ],
14
- "exclude": [ "types/**/*", "src/testtypes/**/*" ]
15
- }