vivth 1.0.5 → 1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "vivth",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "extremely simple signal as library primitives",
5
5
  "main": "index.mjs",
6
6
  "types": "./types/index.d.mts",
@@ -257,6 +257,7 @@ export class JSautoDOC {
257
257
  path: { relative: relativePath },
258
258
  baseName: { noExt },
259
259
  } = (await this.#parsedFilesRef.get(path_)).value;
260
+ const hasNoAutoDoc = /\/\*\*[\s\*]*?@noautodoc[\s\*]*?\*\//.test(await content.string());
260
261
  if (hasValidExportObject) {
261
262
  mjsMain.push(
262
263
  `export { ${noExt} } from '${
@@ -275,7 +276,7 @@ export class JSautoDOC {
275
276
  });
276
277
  if (!error && typedefString) {
277
278
  mjsTypes.push(typedefString.module);
278
- if (!/\/\*\*[\s\*]*?@noautodoc[\s\*]*?\*\//.test(await content.string())) {
279
+ if (!hasNoAutoDoc) {
279
280
  const nameVarID = noExt.toLowerCase();
280
281
  tableOfContent.push(`[${noExt}](#${nameVarID})`);
281
282
  apiDocuments.push(
@@ -285,19 +286,19 @@ export class JSautoDOC {
285
286
  );
286
287
  }
287
288
  }
288
- readme.forEach((ref) => {
289
- const {
290
- // fullDescription,
291
- // instanceOrStatic,
292
- // namedVar,
293
- // typeOfVar,
294
- parsedFullDescription,
295
- reference,
296
- } = ref;
297
- const { description, jsPreview } = parsedFullDescription;
298
- currentDescription.push(`\n#### reference:${reference}\n${description}\n${jsPreview}`);
299
- });
300
- if (hasValidExportObject) {
289
+ if (!hasNoAutoDoc && hasValidExportObject) {
290
+ readme.forEach((ref) => {
291
+ const {
292
+ // fullDescription,
293
+ // instanceOrStatic,
294
+ // namedVar,
295
+ // typeOfVar,
296
+ parsedFullDescription,
297
+ reference,
298
+ } = ref;
299
+ const { description, jsPreview } = parsedFullDescription;
300
+ currentDescription.push(`\n#### reference:${reference}\n${description}\n${jsPreview}`);
301
+ });
301
302
  const nameVarID = noExt.toLowerCase();
302
303
  tableOfContent.push(`[${noExt}](#${noExt.toLowerCase()})`);
303
304
  apiDocuments.push(