@c-rex/types 0.0.4 → 0.0.6

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/package.json CHANGED
@@ -1,27 +1,24 @@
1
1
  {
2
2
  "name": "@c-rex/types",
3
- "version": "0.0.4",
4
- "main": "dist/index.js",
5
- "module": "dist/index.mjs",
6
- "types": "dist/index.d.ts",
3
+ "version": "0.0.6",
7
4
  "files": [
8
- "dist"
5
+ "src"
9
6
  ],
10
7
  "publishConfig": {
11
8
  "access": "public"
12
9
  },
13
10
  "exports": {
14
11
  ".": {
15
- "types": "./dist/index.d.ts",
16
- "import": "./dist/index.mjs",
17
- "require": "./dist/index.js",
18
- "default": "./dist/index.js"
12
+ "types": "./src/index.ts",
13
+ "import": "./src/index.ts",
14
+ "require": "./src/index.ts",
15
+ "default": "./src/index.ts"
19
16
  },
20
17
  "./package.json": "./package.json"
21
18
  },
22
19
  "scripts": {
23
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
24
- "build": "tsup src/index.ts --format cjs,esm --dts"
20
+ "dev": "echo 'Nothing to build using raw TypeScript files'",
21
+ "build": "echo 'No build needed'"
25
22
  },
26
23
  "devDependencies": {
27
24
  "@c-rex/eslint-config": "*",
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { LOG_CATEGORIES, LOG_LEVELS, ALL } from "@c-rex/constants";
2
+
3
+ export type QueryParams = { key: string; value: string };
4
+ export type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL
5
+ export type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;
package/dist/index.d.mts DELETED
@@ -1,10 +0,0 @@
1
- import { LOG_LEVELS, ALL, LOG_CATEGORIES } from '@c-rex/constants';
2
-
3
- type QueryParams = {
4
- key: string;
5
- value: string;
6
- };
7
- type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL;
8
- type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;
9
-
10
- export type { LogCategoriesType, LogLevelType, QueryParams };
package/dist/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { LOG_LEVELS, ALL, LOG_CATEGORIES } from '@c-rex/constants';
2
-
3
- type QueryParams = {
4
- key: string;
5
- value: string;
6
- };
7
- type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL;
8
- type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;
9
-
10
- export type { LogCategoriesType, LogLevelType, QueryParams };
package/dist/index.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/index.ts
17
- var index_exports = {};
18
- module.exports = __toCommonJS(index_exports);
19
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { LOG_CATEGORIES, LOG_LEVELS, ALL } from \"@c-rex/constants\";\n\nexport type QueryParams = { key: string; value: string };\nexport type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL\nexport type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}