typeson-registry 7.0.0 → 7.0.1

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/dist/index.d.ts CHANGED
@@ -39,4 +39,6 @@ import structuredCloning from './presets/structured-cloning.js';
39
39
  import undefPreset from './presets/undef.js';
40
40
  import universal from './presets/universal.js';
41
41
  export { arraybuffer, bigintObject, bigint, blob, cloneable, cryptokey, dataview, date, error, errors, file, filelist, imagebitmap, imagedata, infinity, intlTypes, map, nan, negativeInfinity, negativeZero, nonbuiltinIgnore, primitiveObjects, regexp, resurrectable, set, typedArraysSocketio, typedArrays, undef, userObject, arrayNonindexKeys, builtin, postmessage, socketio, sparseUndefined, specialNumbers, structuredCloningThrowing, structuredCloning, undefPreset, universal };
42
- //# sourceMappingURL=index.d.ts.map
42
+ //# sourceMappingURL=index.d.ts.map
43
+
44
+ export type * from 'typeson';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typeson-registry",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "The type registry for typeson",
5
5
  "author": "dfahlander",
6
6
  "contributors": [
@@ -1,7 +1,13 @@
1
- import {writeFile} from 'fs/promises';
1
+ import {readFile, writeFile} from 'fs/promises';
2
2
 
3
3
  const exportTypes = `
4
4
  export type * from 'typeson';
5
5
  `;
6
6
 
7
- await writeFile('dist/index.d.ts', exportTypes, {flag: 'a+'});
7
+ const filePath = 'dist/index.d.ts';
8
+
9
+ const contents = await readFile(filePath, 'utf8');
10
+
11
+ if (!contents.includes(exportTypes)) {
12
+ await writeFile(filePath, exportTypes, {flag: 'a+'});
13
+ }