@digitaldefiance/branded-enum 0.0.3 → 0.0.4

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.
@@ -146,4 +146,4 @@ const _merge = require("./lib/merge.js");
146
146
  const _advanced = require("./lib/advanced.js");
147
147
  const _decorators = require("./lib/decorators.js");
148
148
 
149
- //# sourceMappingURL=index.cjs.map
149
+ //# sourceMappingURL=index.js.map
@@ -52,4 +52,4 @@ function enumSize(enumObj) {
52
52
  return enumObj[_types.ENUM_VALUES].size;
53
53
  }
54
54
 
55
- //# sourceMappingURL=accessors.cjs.map
55
+ //# sourceMappingURL=accessors.js.map
@@ -555,4 +555,4 @@ function enumSerializer(enumObj, options = {}) {
555
555
  };
556
556
  }
557
557
 
558
- //# sourceMappingURL=advanced.cjs.map
558
+ //# sourceMappingURL=advanced.js.map
@@ -12,4 +12,4 @@ function brandedEnum() {
12
12
  return 'branded-enum';
13
13
  }
14
14
 
15
- //# sourceMappingURL=branded-enum.cjs.map
15
+ //# sourceMappingURL=branded-enum.js.map
@@ -199,4 +199,4 @@ function EnumClass(...enums) {
199
199
  };
200
200
  }
201
201
 
202
- //# sourceMappingURL=decorators.cjs.map
202
+ //# sourceMappingURL=decorators.js.map
@@ -42,4 +42,4 @@ function createBrandedEnum(enumId, values) {
42
42
  return frozenEnum;
43
43
  }
44
44
 
45
- //# sourceMappingURL=factory.cjs.map
45
+ //# sourceMappingURL=factory.js.map
@@ -116,4 +116,4 @@ function safeParseEnum(value, enumObj) {
116
116
  };
117
117
  }
118
118
 
119
- //# sourceMappingURL=guards.cjs.map
119
+ //# sourceMappingURL=guards.js.map
@@ -44,4 +44,4 @@ function mergeEnums(newId, ...enums) {
44
44
  return (0, _factory.createBrandedEnum)(newId, mergedValues);
45
45
  }
46
46
 
47
- //# sourceMappingURL=merge.cjs.map
47
+ //# sourceMappingURL=merge.js.map
@@ -82,4 +82,4 @@ function findEnumSources(value) {
82
82
  return enumIds ? Array.from(enumIds) : [];
83
83
  }
84
84
 
85
- //# sourceMappingURL=registry.cjs.map
85
+ //# sourceMappingURL=registry.js.map
@@ -35,4 +35,4 @@ const ENUM_VALUES = Symbol('ENUM_VALUES');
35
35
  const REGISTRY_KEY = '__brandedEnumRegistry__';
36
36
  const CONSUMER_REGISTRY_KEY = '__brandedEnumConsumerRegistry__';
37
37
 
38
- //# sourceMappingURL=types.cjs.map
38
+ //# sourceMappingURL=types.js.map
@@ -77,4 +77,4 @@ function* enumEntries(enumObj) {
77
77
  }
78
78
  }
79
79
 
80
- //# sourceMappingURL=utils.cjs.map
80
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"type": "commonjs"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@digitaldefiance/branded-enum",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Runtime-identifiable enum-like types for TypeScript with zero runtime overhead",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "main": "./dist/cjs/index.cjs",
7
+ "main": "./dist/cjs/index.js",
8
8
  "module": "./dist/esm/index.js",
9
9
  "types": "./dist/esm/index.d.ts",
10
10
  "exports": {
@@ -12,7 +12,7 @@
12
12
  ".": {
13
13
  "types": "./dist/esm/index.d.ts",
14
14
  "import": "./dist/esm/index.js",
15
- "require": "./dist/cjs/index.cjs",
15
+ "require": "./dist/cjs/index.js",
16
16
  "default": "./dist/esm/index.js"
17
17
  }
18
18
  },
@@ -77,8 +77,9 @@
77
77
  "options": {
78
78
  "commands": [
79
79
  "swc src -d dist/esm --config-file .swcrc --strip-leading-paths",
80
- "swc src -d dist/cjs --config-file .swcrc.cjs --strip-leading-paths -C module.type=commonjs --out-file-extension cjs",
81
- "tsc -p tsconfig.lib.json"
80
+ "swc src -d dist/cjs --config-file .swcrc.cjs --strip-leading-paths -C module.type=commonjs",
81
+ "tsc -p tsconfig.lib.json",
82
+ "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json"
82
83
  ],
83
84
  "cwd": "{projectRoot}",
84
85
  "parallel": false
File without changes
File without changes
File without changes
File without changes
File without changes