From 8e17e2b06da17862adb4f868d2633d31acf67bb8 Mon Sep 17 00:00:00 2001 From: ByungJoon Lee Date: Sun, 2 Jun 2024 17:24:56 +0900 Subject: [PATCH] chore(path): change example path from example to examples - change to examples because it contains many examples --- .eslintrc.cjs | 2 +- README.md | 2 +- doc/IN_DEPTH_FONT.md | 2 +- doc/IN_DEPTH_GEN_STYLE.md | 6 +-- doc/IN_DEPTH_VUE.md | 2 +- {example => examples}/.eslintrc.cjs | 0 {example => examples}/tsconfig.empty.json | 0 {example => examples}/tsconfig.example.json | 2 +- {example => examples}/tsconfig.for.test.json | 2 +- .../type01/__tests__/iamtest.test.ts | 0 .../type01/example_excludeme.ts | 0 .../type01/example_iamtest.ts | 0 .../type01/export_sample01.ts | 0 .../type01/export_sample02.ts | 0 .../type01/export_sample03.ts | 0 .../type01/export_sample04.ts | 0 {example => examples}/type01/tsconfig.json | 0 {example => examples}/type02/BubbleCls.ts | 0 {example => examples}/type02/ComparisonCls.ts | 0 {example => examples}/type02/HandsomelyCls.ts | 0 {example => examples}/type02/SampleCls.ts | 0 .../type02/createTypeScriptIndex.d.ts | 0 {example => examples}/type02/index.d.ts | 0 .../type02/juvenile/TriteCls.ts | 0 .../juvenile/__tests__/juvenile.test.ts | 0 .../type02/juvenile/spill/ExperienceCls.ts | 0 {example => examples}/type02/tsconfig.json | 0 .../type02/wellmade/ChildlikeCls.ts | 0 .../type02/wellmade/FlakyCls.ts | 0 .../type02/wellmade/WhisperingCls.ts | 0 .../wellmade/__tests__/wellmade.test.ts | 0 .../wellmade/carpenter/DiscussionCls.ts | 0 .../type02/wellmade/carpenter/MakeshiftCls.ts | 0 {example => examples}/type03/BubbleCls.tsx | 0 .../type03/ComparisonCls.tsx | 0 .../type03/HandsomelyCls.tsx | 0 {example => examples}/type03/SampleCls.tsx | 0 .../type03/createTypeScriptIndex.d.ts | 0 {example => examples}/type03/index.d.ts | 0 .../type03/juvenile/TriteCls.ts | 0 .../type03/juvenile/spill/ExperienceCls.ts | 0 .../type03/popcorn/case01.ts | 0 .../popcorn/finance/discipline/case02.ts | 0 .../popcorn/finance/discipline/case03.ts | 0 .../type03/popcorn/index.d.ts | 0 .../popcorn/lawyer/appliance/IKittens.ts | 0 .../popcorn/lawyer/appliance/TomatoesCls.ts | 0 .../type03/popcorn/lawyer/appliance/bomb.ts | 0 {example => examples}/type03/tsconfig.json | 0 .../type03/wellmade/ChildlikeCls.ts | 0 .../type03/wellmade/FlakyCls.ts | 0 .../type03/wellmade/WhisperingCls.ts | 0 .../wellmade/carpenter/DiscussionCls.ts | 0 .../type03/wellmade/carpenter/MakeshiftCls.ts | 0 {example => examples}/type04/BubbleCls.tsx | 0 .../type04/ComparisonCls.tsx | 0 .../type04/HandsomelyCls.tsx | 0 {example => examples}/type04/SampleCls.tsx | 0 .../type04/createTypeScriptIndex.d.ts | 0 {example => examples}/type04/ctix.d.ts | 0 .../type04/juvenile/TriteCls.ts | 0 .../type04/juvenile/apple/ChildlikeCls.ts | 0 .../type04/juvenile/apple/FlakyCls.ts | 0 .../type04/juvenile/apple/WhisperingCls.ts | 0 .../type04/juvenile/spill/ExperienceCls.ts | 0 .../type04/popcorn/case01.ts | 0 .../popcorn/finance/discipline/case02.ts | 0 .../popcorn/finance/discipline/case03.ts | 0 .../type04/popcorn/index.d.ts | 0 .../popcorn/lawyer/appliance/IKittens.ts | 0 .../popcorn/lawyer/appliance/TomatoesCls.ts | 0 .../type04/popcorn/lawyer/appliance/bomb.ts | 0 {example => examples}/type04/tsconfig.json | 0 .../wellmade/carpenter/DiscussionCls.ts | 0 .../type04/wellmade/carpenter/MakeshiftCls.ts | 0 {example => examples}/type05/.gitignore | 0 {example => examples}/type05/BubbleCls.tsx | 0 .../type05/ComparisonCls.tsx | 0 .../type05/HandsomelyCls.tsx | 0 {example => examples}/type05/SampleCls.tsx | 0 {example => examples}/type05/SampleEnum.ts | 0 .../type05/createTypeScriptIndex.d.ts | 0 {example => examples}/type05/index.tsx | 0 .../type05/juvenile/TriteCls.ts | 0 .../type05/juvenile/spill/ExperienceCls.ts | 0 {example => examples}/type05/tsconfig.json | 0 .../type05/wellmade/ChildlikeCls.ts | 0 .../type05/wellmade/FlakyCls.ts | 0 .../type05/wellmade/WhisperingCls.ts | 0 .../wellmade/carpenter/DiscussionCls.ts | 0 .../type05/wellmade/carpenter/MakeshiftCls.ts | 0 {example => examples}/type06/Case08.ts | 0 {example => examples}/type06/Case09.ts | 0 {example => examples}/type06/case01.ts | 0 {example => examples}/type06/case02.ts | 0 {example => examples}/type06/case03.ts | 0 {example => examples}/type06/case04.ts | 0 {example => examples}/type06/case05.ts | 0 {example => examples}/type06/case06.ts | 0 {example => examples}/type06/case07.ts | 0 {example => examples}/type06/tsconfig.json | 0 {example => examples}/type07/case001.ts | 0 {example => examples}/type07/case002.ts | 0 {example => examples}/type07/case003.ts | 0 {example => examples}/type07/case004.ts | 0 .../type07/fast-maker/ChildlikeCls.ts | 0 .../type07/fast-maker/FlakyCls.ts | 0 .../type07/fast-maker/WhisperingCls.ts | 0 .../fast-maker/__tests__/juvenile.test.ts | 0 .../fast-maker/carpenter/DiscussionCls.ts | 0 .../fast-maker/carpenter/MakeshiftCls.ts | 0 {example => examples}/type07/tsconfig.json | 0 {example => examples}/type08/Bar.ts | 0 {example => examples}/type08/Foo.ts | 0 {example => examples}/type08/tsconfig.json | 0 .../type09/DeclareTtfModule.d.ts | 0 .../type09/WildcardDeclaration.ts | 0 {example => examples}/type09/tsconfig.json | 0 {example => examples}/type10/.ctirc | 10 ++--- .../type10/components/Bar.vue | 0 .../type10/components/Foo.vue | 0 {example => examples}/type10/lib/something.ts | 0 {example => examples}/type10/tsconfig.json | 0 {example => examples}/type10/types/vue.d.ts | 0 .../type11/components/index.ts | 0 {example => examples}/type11/tsconfig.json | 0 .../__tests__/inline.comment.parser.test.ts | 2 +- .../__tests__/inline.excluded.test.ts | 2 +- .../__tests__/inline.generation.style.test.ts | 2 +- src/comments/__tests__/node.comments.test.ts | 2 +- .../__tests__/export.assignement.map.test.ts | 2 +- .../__tests__/export.kind.exception.test.ts | 2 +- .../export.statement.summary.test.ts | 2 +- .../__tests__/export.statements.class.test.ts | 2 +- .../__tests__/export.statements.enum.test.ts | 2 +- .../export.statements.function.test.ts | 2 +- .../export.statements.interface.test.ts | 2 +- .../export.statements.literal.test.ts | 2 +- .../export.statements.module.test.ts | 2 +- .../export.statements.source.file.test.ts | 2 +- .../export.statements.type.alias.test.ts | 2 +- .../export.statements.variable.test.ts | 2 +- .../__tests__/is.declaration.file.test.ts | 2 +- src/compilers/__tests__/symbol.table.test.ts | 2 +- src/compilers/__tests__/tsconfig.test.ts | 10 ++--- .../__tests__/tsconfig.comparer.test.ts | 32 +++++++------- src/modules/file/__tests__/glob.files.test.ts | 44 +++++++++---------- .../scope/__tests__/exclude.container.test.ts | 6 +-- .../scope/__tests__/include.container.test.ts | 4 +- src/templates/__tests__/render.data.test.ts | 10 ++--- tsconfig.eslint.json | 2 +- tsconfig.json | 2 +- tsconfig.prod.json | 2 +- vitest.config.ts | 2 +- 154 files changed, 89 insertions(+), 89 deletions(-) rename {example => examples}/.eslintrc.cjs (100%) rename {example => examples}/tsconfig.empty.json (100%) rename {example => examples}/tsconfig.example.json (95%) rename {example => examples}/tsconfig.for.test.json (96%) rename {example => examples}/type01/__tests__/iamtest.test.ts (100%) rename {example => examples}/type01/example_excludeme.ts (100%) rename {example => examples}/type01/example_iamtest.ts (100%) rename {example => examples}/type01/export_sample01.ts (100%) rename {example => examples}/type01/export_sample02.ts (100%) rename {example => examples}/type01/export_sample03.ts (100%) rename {example => examples}/type01/export_sample04.ts (100%) rename {example => examples}/type01/tsconfig.json (100%) rename {example => examples}/type02/BubbleCls.ts (100%) rename {example => examples}/type02/ComparisonCls.ts (100%) rename {example => examples}/type02/HandsomelyCls.ts (100%) rename {example => examples}/type02/SampleCls.ts (100%) rename {example => examples}/type02/createTypeScriptIndex.d.ts (100%) rename {example => examples}/type02/index.d.ts (100%) rename {example => examples}/type02/juvenile/TriteCls.ts (100%) rename {example => examples}/type02/juvenile/__tests__/juvenile.test.ts (100%) rename {example => examples}/type02/juvenile/spill/ExperienceCls.ts (100%) rename {example => examples}/type02/tsconfig.json (100%) rename {example => examples}/type02/wellmade/ChildlikeCls.ts (100%) rename {example => examples}/type02/wellmade/FlakyCls.ts (100%) rename {example => examples}/type02/wellmade/WhisperingCls.ts (100%) rename {example => examples}/type02/wellmade/__tests__/wellmade.test.ts (100%) rename {example => examples}/type02/wellmade/carpenter/DiscussionCls.ts (100%) rename {example => examples}/type02/wellmade/carpenter/MakeshiftCls.ts (100%) rename {example => examples}/type03/BubbleCls.tsx (100%) rename {example => examples}/type03/ComparisonCls.tsx (100%) rename {example => examples}/type03/HandsomelyCls.tsx (100%) rename {example => examples}/type03/SampleCls.tsx (100%) rename {example => examples}/type03/createTypeScriptIndex.d.ts (100%) rename {example => examples}/type03/index.d.ts (100%) rename {example => examples}/type03/juvenile/TriteCls.ts (100%) rename {example => examples}/type03/juvenile/spill/ExperienceCls.ts (100%) rename {example => examples}/type03/popcorn/case01.ts (100%) rename {example => examples}/type03/popcorn/finance/discipline/case02.ts (100%) rename {example => examples}/type03/popcorn/finance/discipline/case03.ts (100%) rename {example => examples}/type03/popcorn/index.d.ts (100%) rename {example => examples}/type03/popcorn/lawyer/appliance/IKittens.ts (100%) rename {example => examples}/type03/popcorn/lawyer/appliance/TomatoesCls.ts (100%) rename {example => examples}/type03/popcorn/lawyer/appliance/bomb.ts (100%) rename {example => examples}/type03/tsconfig.json (100%) rename {example => examples}/type03/wellmade/ChildlikeCls.ts (100%) rename {example => examples}/type03/wellmade/FlakyCls.ts (100%) rename {example => examples}/type03/wellmade/WhisperingCls.ts (100%) rename {example => examples}/type03/wellmade/carpenter/DiscussionCls.ts (100%) rename {example => examples}/type03/wellmade/carpenter/MakeshiftCls.ts (100%) rename {example => examples}/type04/BubbleCls.tsx (100%) rename {example => examples}/type04/ComparisonCls.tsx (100%) rename {example => examples}/type04/HandsomelyCls.tsx (100%) rename {example => examples}/type04/SampleCls.tsx (100%) rename {example => examples}/type04/createTypeScriptIndex.d.ts (100%) rename {example => examples}/type04/ctix.d.ts (100%) rename {example => examples}/type04/juvenile/TriteCls.ts (100%) rename {example => examples}/type04/juvenile/apple/ChildlikeCls.ts (100%) rename {example => examples}/type04/juvenile/apple/FlakyCls.ts (100%) rename {example => examples}/type04/juvenile/apple/WhisperingCls.ts (100%) rename {example => examples}/type04/juvenile/spill/ExperienceCls.ts (100%) rename {example => examples}/type04/popcorn/case01.ts (100%) rename {example => examples}/type04/popcorn/finance/discipline/case02.ts (100%) rename {example => examples}/type04/popcorn/finance/discipline/case03.ts (100%) rename {example => examples}/type04/popcorn/index.d.ts (100%) rename {example => examples}/type04/popcorn/lawyer/appliance/IKittens.ts (100%) rename {example => examples}/type04/popcorn/lawyer/appliance/TomatoesCls.ts (100%) rename {example => examples}/type04/popcorn/lawyer/appliance/bomb.ts (100%) rename {example => examples}/type04/tsconfig.json (100%) rename {example => examples}/type04/wellmade/carpenter/DiscussionCls.ts (100%) rename {example => examples}/type04/wellmade/carpenter/MakeshiftCls.ts (100%) rename {example => examples}/type05/.gitignore (100%) rename {example => examples}/type05/BubbleCls.tsx (100%) rename {example => examples}/type05/ComparisonCls.tsx (100%) rename {example => examples}/type05/HandsomelyCls.tsx (100%) rename {example => examples}/type05/SampleCls.tsx (100%) rename {example => examples}/type05/SampleEnum.ts (100%) rename {example => examples}/type05/createTypeScriptIndex.d.ts (100%) rename {example => examples}/type05/index.tsx (100%) rename {example => examples}/type05/juvenile/TriteCls.ts (100%) rename {example => examples}/type05/juvenile/spill/ExperienceCls.ts (100%) rename {example => examples}/type05/tsconfig.json (100%) rename {example => examples}/type05/wellmade/ChildlikeCls.ts (100%) rename {example => examples}/type05/wellmade/FlakyCls.ts (100%) rename {example => examples}/type05/wellmade/WhisperingCls.ts (100%) rename {example => examples}/type05/wellmade/carpenter/DiscussionCls.ts (100%) rename {example => examples}/type05/wellmade/carpenter/MakeshiftCls.ts (100%) rename {example => examples}/type06/Case08.ts (100%) rename {example => examples}/type06/Case09.ts (100%) rename {example => examples}/type06/case01.ts (100%) rename {example => examples}/type06/case02.ts (100%) rename {example => examples}/type06/case03.ts (100%) rename {example => examples}/type06/case04.ts (100%) rename {example => examples}/type06/case05.ts (100%) rename {example => examples}/type06/case06.ts (100%) rename {example => examples}/type06/case07.ts (100%) rename {example => examples}/type06/tsconfig.json (100%) rename {example => examples}/type07/case001.ts (100%) rename {example => examples}/type07/case002.ts (100%) rename {example => examples}/type07/case003.ts (100%) rename {example => examples}/type07/case004.ts (100%) rename {example => examples}/type07/fast-maker/ChildlikeCls.ts (100%) rename {example => examples}/type07/fast-maker/FlakyCls.ts (100%) rename {example => examples}/type07/fast-maker/WhisperingCls.ts (100%) rename {example => examples}/type07/fast-maker/__tests__/juvenile.test.ts (100%) rename {example => examples}/type07/fast-maker/carpenter/DiscussionCls.ts (100%) rename {example => examples}/type07/fast-maker/carpenter/MakeshiftCls.ts (100%) rename {example => examples}/type07/tsconfig.json (100%) rename {example => examples}/type08/Bar.ts (100%) rename {example => examples}/type08/Foo.ts (100%) rename {example => examples}/type08/tsconfig.json (100%) rename {example => examples}/type09/DeclareTtfModule.d.ts (100%) rename {example => examples}/type09/WildcardDeclaration.ts (100%) rename {example => examples}/type09/tsconfig.json (100%) rename {example => examples}/type10/.ctirc (75%) rename {example => examples}/type10/components/Bar.vue (100%) rename {example => examples}/type10/components/Foo.vue (100%) rename {example => examples}/type10/lib/something.ts (100%) rename {example => examples}/type10/tsconfig.json (100%) rename {example => examples}/type10/types/vue.d.ts (100%) rename {example => examples}/type11/components/index.ts (100%) rename {example => examples}/type11/tsconfig.json (100%) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d892877..f699f87 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,7 +3,7 @@ module.exports = { es6: true, node: true, }, - ignorePatterns: ['__test__/*', '__tests__/*', 'example/*', 'coverage/*', 'dist/*'], + ignorePatterns: ['__test__/*', '__tests__/*', 'examples/*', 'coverage/*', 'dist/*'], parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.eslint.json', diff --git a/README.md b/README.md index 14827f2..525457e 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ The mode in which the `barrel` file is to be generated. There is a create mode t | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ![bundle mode](static/img/bundle-mode.png) | ![create mode](static/img/create-mode.png) | ![module mode](static/img/module-mode.png) | -Check out the `.ctirc` in [example/type10](https://github.com/imjuni/ctix/blob/master/example/type10/.ctirc) to see how to utilize the `module` mode. +Check out the `.ctirc` in [examples/type10](https://github.com/imjuni/ctix/blob/master/examples/type10/.ctirc) to see how to utilize the `module` mode. ### How can I exclude unwanted files? diff --git a/doc/IN_DEPTH_FONT.md b/doc/IN_DEPTH_FONT.md index 0e5a068..51d800f 100644 --- a/doc/IN_DEPTH_FONT.md +++ b/doc/IN_DEPTH_FONT.md @@ -22,4 +22,4 @@ In this case, the TypeScript Compiler API reads the `DeclareTftModule.d.ts` file export * from './WildcardDeclaration'; ``` -You can see an example at [example/type09](https://github.com/imjuni/ctix/tree/master/example/type09) +You can see an example at [examples/type09](https://github.com/imjuni/ctix/tree/master/examples/type09) diff --git a/doc/IN_DEPTH_GEN_STYLE.md b/doc/IN_DEPTH_GEN_STYLE.md index 0719368..fd50f00 100644 --- a/doc/IN_DEPTH_GEN_STYLE.md +++ b/doc/IN_DEPTH_GEN_STYLE.md @@ -39,7 +39,7 @@ Configuration for entire project. "options": [ { "mode": "bundle", - "project": "example/type10/tsconfig.json", + "project": "examples/type10/tsconfig.json", "exportFilename": "index.ts", "useSemicolon": true, "useBanner": false, @@ -53,8 +53,8 @@ Configuration for entire project. "include": ["**/*.ts"], "exclude": [], "skipEmptyDir": true, - "startFrom": "/Users/imjuni/project/github/ctix/ctix/example/type10", - "output": "example/type10", + "startFrom": "[...your path]/examples/type10", + "output": "examples/type10", "removeBackup": false, "forceYes": false } diff --git a/doc/IN_DEPTH_VUE.md b/doc/IN_DEPTH_VUE.md index 4aff727..bb6d24b 100644 --- a/doc/IN_DEPTH_VUE.md +++ b/doc/IN_DEPTH_VUE.md @@ -39,4 +39,4 @@ ctix does not yet automatically generate `index.ts` files for Vue.js component f export * from './components/index'; ``` -You can see an example at [example/type10](https://github.com/imjuni/ctix/tree/master/example/type10) +You can see an example at [examples/type10](https://github.com/imjuni/ctix/tree/master/examples/type10) diff --git a/example/.eslintrc.cjs b/examples/.eslintrc.cjs similarity index 100% rename from example/.eslintrc.cjs rename to examples/.eslintrc.cjs diff --git a/example/tsconfig.empty.json b/examples/tsconfig.empty.json similarity index 100% rename from example/tsconfig.empty.json rename to examples/tsconfig.empty.json diff --git a/example/tsconfig.example.json b/examples/tsconfig.example.json similarity index 95% rename from example/tsconfig.example.json rename to examples/tsconfig.example.json index de42a16..0d6e256 100644 --- a/example/tsconfig.example.json +++ b/examples/tsconfig.example.json @@ -41,5 +41,5 @@ "pretty": true }, "include": ["*.ts"], - "exclude": ["example/**", "dist/**", "**/erdia_eg", "**/.configs/**", "**/docs/**/*"] + "exclude": ["examples/**", "dist/**", "**/erdia_eg", "**/.configs/**", "**/docs/**/*"] } diff --git a/example/tsconfig.for.test.json b/examples/tsconfig.for.test.json similarity index 96% rename from example/tsconfig.for.test.json rename to examples/tsconfig.for.test.json index 2c68133..fd3db48 100644 --- a/example/tsconfig.for.test.json +++ b/examples/tsconfig.for.test.json @@ -52,5 +52,5 @@ "pretty": true }, "include": ["src/**/*.ts"], - "exclude": ["example/**", "dist/**", "**/erdia_eg", "**/.configs/**", "**/docs/**/*"] + "exclude": ["examples/**", "dist/**", "**/erdia_eg", "**/.configs/**", "**/docs/**/*"] } diff --git a/example/type01/__tests__/iamtest.test.ts b/examples/type01/__tests__/iamtest.test.ts similarity index 100% rename from example/type01/__tests__/iamtest.test.ts rename to examples/type01/__tests__/iamtest.test.ts diff --git a/example/type01/example_excludeme.ts b/examples/type01/example_excludeme.ts similarity index 100% rename from example/type01/example_excludeme.ts rename to examples/type01/example_excludeme.ts diff --git a/example/type01/example_iamtest.ts b/examples/type01/example_iamtest.ts similarity index 100% rename from example/type01/example_iamtest.ts rename to examples/type01/example_iamtest.ts diff --git a/example/type01/export_sample01.ts b/examples/type01/export_sample01.ts similarity index 100% rename from example/type01/export_sample01.ts rename to examples/type01/export_sample01.ts diff --git a/example/type01/export_sample02.ts b/examples/type01/export_sample02.ts similarity index 100% rename from example/type01/export_sample02.ts rename to examples/type01/export_sample02.ts diff --git a/example/type01/export_sample03.ts b/examples/type01/export_sample03.ts similarity index 100% rename from example/type01/export_sample03.ts rename to examples/type01/export_sample03.ts diff --git a/example/type01/export_sample04.ts b/examples/type01/export_sample04.ts similarity index 100% rename from example/type01/export_sample04.ts rename to examples/type01/export_sample04.ts diff --git a/example/type01/tsconfig.json b/examples/type01/tsconfig.json similarity index 100% rename from example/type01/tsconfig.json rename to examples/type01/tsconfig.json diff --git a/example/type02/BubbleCls.ts b/examples/type02/BubbleCls.ts similarity index 100% rename from example/type02/BubbleCls.ts rename to examples/type02/BubbleCls.ts diff --git a/example/type02/ComparisonCls.ts b/examples/type02/ComparisonCls.ts similarity index 100% rename from example/type02/ComparisonCls.ts rename to examples/type02/ComparisonCls.ts diff --git a/example/type02/HandsomelyCls.ts b/examples/type02/HandsomelyCls.ts similarity index 100% rename from example/type02/HandsomelyCls.ts rename to examples/type02/HandsomelyCls.ts diff --git a/example/type02/SampleCls.ts b/examples/type02/SampleCls.ts similarity index 100% rename from example/type02/SampleCls.ts rename to examples/type02/SampleCls.ts diff --git a/example/type02/createTypeScriptIndex.d.ts b/examples/type02/createTypeScriptIndex.d.ts similarity index 100% rename from example/type02/createTypeScriptIndex.d.ts rename to examples/type02/createTypeScriptIndex.d.ts diff --git a/example/type02/index.d.ts b/examples/type02/index.d.ts similarity index 100% rename from example/type02/index.d.ts rename to examples/type02/index.d.ts diff --git a/example/type02/juvenile/TriteCls.ts b/examples/type02/juvenile/TriteCls.ts similarity index 100% rename from example/type02/juvenile/TriteCls.ts rename to examples/type02/juvenile/TriteCls.ts diff --git a/example/type02/juvenile/__tests__/juvenile.test.ts b/examples/type02/juvenile/__tests__/juvenile.test.ts similarity index 100% rename from example/type02/juvenile/__tests__/juvenile.test.ts rename to examples/type02/juvenile/__tests__/juvenile.test.ts diff --git a/example/type02/juvenile/spill/ExperienceCls.ts b/examples/type02/juvenile/spill/ExperienceCls.ts similarity index 100% rename from example/type02/juvenile/spill/ExperienceCls.ts rename to examples/type02/juvenile/spill/ExperienceCls.ts diff --git a/example/type02/tsconfig.json b/examples/type02/tsconfig.json similarity index 100% rename from example/type02/tsconfig.json rename to examples/type02/tsconfig.json diff --git a/example/type02/wellmade/ChildlikeCls.ts b/examples/type02/wellmade/ChildlikeCls.ts similarity index 100% rename from example/type02/wellmade/ChildlikeCls.ts rename to examples/type02/wellmade/ChildlikeCls.ts diff --git a/example/type02/wellmade/FlakyCls.ts b/examples/type02/wellmade/FlakyCls.ts similarity index 100% rename from example/type02/wellmade/FlakyCls.ts rename to examples/type02/wellmade/FlakyCls.ts diff --git a/example/type02/wellmade/WhisperingCls.ts b/examples/type02/wellmade/WhisperingCls.ts similarity index 100% rename from example/type02/wellmade/WhisperingCls.ts rename to examples/type02/wellmade/WhisperingCls.ts diff --git a/example/type02/wellmade/__tests__/wellmade.test.ts b/examples/type02/wellmade/__tests__/wellmade.test.ts similarity index 100% rename from example/type02/wellmade/__tests__/wellmade.test.ts rename to examples/type02/wellmade/__tests__/wellmade.test.ts diff --git a/example/type02/wellmade/carpenter/DiscussionCls.ts b/examples/type02/wellmade/carpenter/DiscussionCls.ts similarity index 100% rename from example/type02/wellmade/carpenter/DiscussionCls.ts rename to examples/type02/wellmade/carpenter/DiscussionCls.ts diff --git a/example/type02/wellmade/carpenter/MakeshiftCls.ts b/examples/type02/wellmade/carpenter/MakeshiftCls.ts similarity index 100% rename from example/type02/wellmade/carpenter/MakeshiftCls.ts rename to examples/type02/wellmade/carpenter/MakeshiftCls.ts diff --git a/example/type03/BubbleCls.tsx b/examples/type03/BubbleCls.tsx similarity index 100% rename from example/type03/BubbleCls.tsx rename to examples/type03/BubbleCls.tsx diff --git a/example/type03/ComparisonCls.tsx b/examples/type03/ComparisonCls.tsx similarity index 100% rename from example/type03/ComparisonCls.tsx rename to examples/type03/ComparisonCls.tsx diff --git a/example/type03/HandsomelyCls.tsx b/examples/type03/HandsomelyCls.tsx similarity index 100% rename from example/type03/HandsomelyCls.tsx rename to examples/type03/HandsomelyCls.tsx diff --git a/example/type03/SampleCls.tsx b/examples/type03/SampleCls.tsx similarity index 100% rename from example/type03/SampleCls.tsx rename to examples/type03/SampleCls.tsx diff --git a/example/type03/createTypeScriptIndex.d.ts b/examples/type03/createTypeScriptIndex.d.ts similarity index 100% rename from example/type03/createTypeScriptIndex.d.ts rename to examples/type03/createTypeScriptIndex.d.ts diff --git a/example/type03/index.d.ts b/examples/type03/index.d.ts similarity index 100% rename from example/type03/index.d.ts rename to examples/type03/index.d.ts diff --git a/example/type03/juvenile/TriteCls.ts b/examples/type03/juvenile/TriteCls.ts similarity index 100% rename from example/type03/juvenile/TriteCls.ts rename to examples/type03/juvenile/TriteCls.ts diff --git a/example/type03/juvenile/spill/ExperienceCls.ts b/examples/type03/juvenile/spill/ExperienceCls.ts similarity index 100% rename from example/type03/juvenile/spill/ExperienceCls.ts rename to examples/type03/juvenile/spill/ExperienceCls.ts diff --git a/example/type03/popcorn/case01.ts b/examples/type03/popcorn/case01.ts similarity index 100% rename from example/type03/popcorn/case01.ts rename to examples/type03/popcorn/case01.ts diff --git a/example/type03/popcorn/finance/discipline/case02.ts b/examples/type03/popcorn/finance/discipline/case02.ts similarity index 100% rename from example/type03/popcorn/finance/discipline/case02.ts rename to examples/type03/popcorn/finance/discipline/case02.ts diff --git a/example/type03/popcorn/finance/discipline/case03.ts b/examples/type03/popcorn/finance/discipline/case03.ts similarity index 100% rename from example/type03/popcorn/finance/discipline/case03.ts rename to examples/type03/popcorn/finance/discipline/case03.ts diff --git a/example/type03/popcorn/index.d.ts b/examples/type03/popcorn/index.d.ts similarity index 100% rename from example/type03/popcorn/index.d.ts rename to examples/type03/popcorn/index.d.ts diff --git a/example/type03/popcorn/lawyer/appliance/IKittens.ts b/examples/type03/popcorn/lawyer/appliance/IKittens.ts similarity index 100% rename from example/type03/popcorn/lawyer/appliance/IKittens.ts rename to examples/type03/popcorn/lawyer/appliance/IKittens.ts diff --git a/example/type03/popcorn/lawyer/appliance/TomatoesCls.ts b/examples/type03/popcorn/lawyer/appliance/TomatoesCls.ts similarity index 100% rename from example/type03/popcorn/lawyer/appliance/TomatoesCls.ts rename to examples/type03/popcorn/lawyer/appliance/TomatoesCls.ts diff --git a/example/type03/popcorn/lawyer/appliance/bomb.ts b/examples/type03/popcorn/lawyer/appliance/bomb.ts similarity index 100% rename from example/type03/popcorn/lawyer/appliance/bomb.ts rename to examples/type03/popcorn/lawyer/appliance/bomb.ts diff --git a/example/type03/tsconfig.json b/examples/type03/tsconfig.json similarity index 100% rename from example/type03/tsconfig.json rename to examples/type03/tsconfig.json diff --git a/example/type03/wellmade/ChildlikeCls.ts b/examples/type03/wellmade/ChildlikeCls.ts similarity index 100% rename from example/type03/wellmade/ChildlikeCls.ts rename to examples/type03/wellmade/ChildlikeCls.ts diff --git a/example/type03/wellmade/FlakyCls.ts b/examples/type03/wellmade/FlakyCls.ts similarity index 100% rename from example/type03/wellmade/FlakyCls.ts rename to examples/type03/wellmade/FlakyCls.ts diff --git a/example/type03/wellmade/WhisperingCls.ts b/examples/type03/wellmade/WhisperingCls.ts similarity index 100% rename from example/type03/wellmade/WhisperingCls.ts rename to examples/type03/wellmade/WhisperingCls.ts diff --git a/example/type03/wellmade/carpenter/DiscussionCls.ts b/examples/type03/wellmade/carpenter/DiscussionCls.ts similarity index 100% rename from example/type03/wellmade/carpenter/DiscussionCls.ts rename to examples/type03/wellmade/carpenter/DiscussionCls.ts diff --git a/example/type03/wellmade/carpenter/MakeshiftCls.ts b/examples/type03/wellmade/carpenter/MakeshiftCls.ts similarity index 100% rename from example/type03/wellmade/carpenter/MakeshiftCls.ts rename to examples/type03/wellmade/carpenter/MakeshiftCls.ts diff --git a/example/type04/BubbleCls.tsx b/examples/type04/BubbleCls.tsx similarity index 100% rename from example/type04/BubbleCls.tsx rename to examples/type04/BubbleCls.tsx diff --git a/example/type04/ComparisonCls.tsx b/examples/type04/ComparisonCls.tsx similarity index 100% rename from example/type04/ComparisonCls.tsx rename to examples/type04/ComparisonCls.tsx diff --git a/example/type04/HandsomelyCls.tsx b/examples/type04/HandsomelyCls.tsx similarity index 100% rename from example/type04/HandsomelyCls.tsx rename to examples/type04/HandsomelyCls.tsx diff --git a/example/type04/SampleCls.tsx b/examples/type04/SampleCls.tsx similarity index 100% rename from example/type04/SampleCls.tsx rename to examples/type04/SampleCls.tsx diff --git a/example/type04/createTypeScriptIndex.d.ts b/examples/type04/createTypeScriptIndex.d.ts similarity index 100% rename from example/type04/createTypeScriptIndex.d.ts rename to examples/type04/createTypeScriptIndex.d.ts diff --git a/example/type04/ctix.d.ts b/examples/type04/ctix.d.ts similarity index 100% rename from example/type04/ctix.d.ts rename to examples/type04/ctix.d.ts diff --git a/example/type04/juvenile/TriteCls.ts b/examples/type04/juvenile/TriteCls.ts similarity index 100% rename from example/type04/juvenile/TriteCls.ts rename to examples/type04/juvenile/TriteCls.ts diff --git a/example/type04/juvenile/apple/ChildlikeCls.ts b/examples/type04/juvenile/apple/ChildlikeCls.ts similarity index 100% rename from example/type04/juvenile/apple/ChildlikeCls.ts rename to examples/type04/juvenile/apple/ChildlikeCls.ts diff --git a/example/type04/juvenile/apple/FlakyCls.ts b/examples/type04/juvenile/apple/FlakyCls.ts similarity index 100% rename from example/type04/juvenile/apple/FlakyCls.ts rename to examples/type04/juvenile/apple/FlakyCls.ts diff --git a/example/type04/juvenile/apple/WhisperingCls.ts b/examples/type04/juvenile/apple/WhisperingCls.ts similarity index 100% rename from example/type04/juvenile/apple/WhisperingCls.ts rename to examples/type04/juvenile/apple/WhisperingCls.ts diff --git a/example/type04/juvenile/spill/ExperienceCls.ts b/examples/type04/juvenile/spill/ExperienceCls.ts similarity index 100% rename from example/type04/juvenile/spill/ExperienceCls.ts rename to examples/type04/juvenile/spill/ExperienceCls.ts diff --git a/example/type04/popcorn/case01.ts b/examples/type04/popcorn/case01.ts similarity index 100% rename from example/type04/popcorn/case01.ts rename to examples/type04/popcorn/case01.ts diff --git a/example/type04/popcorn/finance/discipline/case02.ts b/examples/type04/popcorn/finance/discipline/case02.ts similarity index 100% rename from example/type04/popcorn/finance/discipline/case02.ts rename to examples/type04/popcorn/finance/discipline/case02.ts diff --git a/example/type04/popcorn/finance/discipline/case03.ts b/examples/type04/popcorn/finance/discipline/case03.ts similarity index 100% rename from example/type04/popcorn/finance/discipline/case03.ts rename to examples/type04/popcorn/finance/discipline/case03.ts diff --git a/example/type04/popcorn/index.d.ts b/examples/type04/popcorn/index.d.ts similarity index 100% rename from example/type04/popcorn/index.d.ts rename to examples/type04/popcorn/index.d.ts diff --git a/example/type04/popcorn/lawyer/appliance/IKittens.ts b/examples/type04/popcorn/lawyer/appliance/IKittens.ts similarity index 100% rename from example/type04/popcorn/lawyer/appliance/IKittens.ts rename to examples/type04/popcorn/lawyer/appliance/IKittens.ts diff --git a/example/type04/popcorn/lawyer/appliance/TomatoesCls.ts b/examples/type04/popcorn/lawyer/appliance/TomatoesCls.ts similarity index 100% rename from example/type04/popcorn/lawyer/appliance/TomatoesCls.ts rename to examples/type04/popcorn/lawyer/appliance/TomatoesCls.ts diff --git a/example/type04/popcorn/lawyer/appliance/bomb.ts b/examples/type04/popcorn/lawyer/appliance/bomb.ts similarity index 100% rename from example/type04/popcorn/lawyer/appliance/bomb.ts rename to examples/type04/popcorn/lawyer/appliance/bomb.ts diff --git a/example/type04/tsconfig.json b/examples/type04/tsconfig.json similarity index 100% rename from example/type04/tsconfig.json rename to examples/type04/tsconfig.json diff --git a/example/type04/wellmade/carpenter/DiscussionCls.ts b/examples/type04/wellmade/carpenter/DiscussionCls.ts similarity index 100% rename from example/type04/wellmade/carpenter/DiscussionCls.ts rename to examples/type04/wellmade/carpenter/DiscussionCls.ts diff --git a/example/type04/wellmade/carpenter/MakeshiftCls.ts b/examples/type04/wellmade/carpenter/MakeshiftCls.ts similarity index 100% rename from example/type04/wellmade/carpenter/MakeshiftCls.ts rename to examples/type04/wellmade/carpenter/MakeshiftCls.ts diff --git a/example/type05/.gitignore b/examples/type05/.gitignore similarity index 100% rename from example/type05/.gitignore rename to examples/type05/.gitignore diff --git a/example/type05/BubbleCls.tsx b/examples/type05/BubbleCls.tsx similarity index 100% rename from example/type05/BubbleCls.tsx rename to examples/type05/BubbleCls.tsx diff --git a/example/type05/ComparisonCls.tsx b/examples/type05/ComparisonCls.tsx similarity index 100% rename from example/type05/ComparisonCls.tsx rename to examples/type05/ComparisonCls.tsx diff --git a/example/type05/HandsomelyCls.tsx b/examples/type05/HandsomelyCls.tsx similarity index 100% rename from example/type05/HandsomelyCls.tsx rename to examples/type05/HandsomelyCls.tsx diff --git a/example/type05/SampleCls.tsx b/examples/type05/SampleCls.tsx similarity index 100% rename from example/type05/SampleCls.tsx rename to examples/type05/SampleCls.tsx diff --git a/example/type05/SampleEnum.ts b/examples/type05/SampleEnum.ts similarity index 100% rename from example/type05/SampleEnum.ts rename to examples/type05/SampleEnum.ts diff --git a/example/type05/createTypeScriptIndex.d.ts b/examples/type05/createTypeScriptIndex.d.ts similarity index 100% rename from example/type05/createTypeScriptIndex.d.ts rename to examples/type05/createTypeScriptIndex.d.ts diff --git a/example/type05/index.tsx b/examples/type05/index.tsx similarity index 100% rename from example/type05/index.tsx rename to examples/type05/index.tsx diff --git a/example/type05/juvenile/TriteCls.ts b/examples/type05/juvenile/TriteCls.ts similarity index 100% rename from example/type05/juvenile/TriteCls.ts rename to examples/type05/juvenile/TriteCls.ts diff --git a/example/type05/juvenile/spill/ExperienceCls.ts b/examples/type05/juvenile/spill/ExperienceCls.ts similarity index 100% rename from example/type05/juvenile/spill/ExperienceCls.ts rename to examples/type05/juvenile/spill/ExperienceCls.ts diff --git a/example/type05/tsconfig.json b/examples/type05/tsconfig.json similarity index 100% rename from example/type05/tsconfig.json rename to examples/type05/tsconfig.json diff --git a/example/type05/wellmade/ChildlikeCls.ts b/examples/type05/wellmade/ChildlikeCls.ts similarity index 100% rename from example/type05/wellmade/ChildlikeCls.ts rename to examples/type05/wellmade/ChildlikeCls.ts diff --git a/example/type05/wellmade/FlakyCls.ts b/examples/type05/wellmade/FlakyCls.ts similarity index 100% rename from example/type05/wellmade/FlakyCls.ts rename to examples/type05/wellmade/FlakyCls.ts diff --git a/example/type05/wellmade/WhisperingCls.ts b/examples/type05/wellmade/WhisperingCls.ts similarity index 100% rename from example/type05/wellmade/WhisperingCls.ts rename to examples/type05/wellmade/WhisperingCls.ts diff --git a/example/type05/wellmade/carpenter/DiscussionCls.ts b/examples/type05/wellmade/carpenter/DiscussionCls.ts similarity index 100% rename from example/type05/wellmade/carpenter/DiscussionCls.ts rename to examples/type05/wellmade/carpenter/DiscussionCls.ts diff --git a/example/type05/wellmade/carpenter/MakeshiftCls.ts b/examples/type05/wellmade/carpenter/MakeshiftCls.ts similarity index 100% rename from example/type05/wellmade/carpenter/MakeshiftCls.ts rename to examples/type05/wellmade/carpenter/MakeshiftCls.ts diff --git a/example/type06/Case08.ts b/examples/type06/Case08.ts similarity index 100% rename from example/type06/Case08.ts rename to examples/type06/Case08.ts diff --git a/example/type06/Case09.ts b/examples/type06/Case09.ts similarity index 100% rename from example/type06/Case09.ts rename to examples/type06/Case09.ts diff --git a/example/type06/case01.ts b/examples/type06/case01.ts similarity index 100% rename from example/type06/case01.ts rename to examples/type06/case01.ts diff --git a/example/type06/case02.ts b/examples/type06/case02.ts similarity index 100% rename from example/type06/case02.ts rename to examples/type06/case02.ts diff --git a/example/type06/case03.ts b/examples/type06/case03.ts similarity index 100% rename from example/type06/case03.ts rename to examples/type06/case03.ts diff --git a/example/type06/case04.ts b/examples/type06/case04.ts similarity index 100% rename from example/type06/case04.ts rename to examples/type06/case04.ts diff --git a/example/type06/case05.ts b/examples/type06/case05.ts similarity index 100% rename from example/type06/case05.ts rename to examples/type06/case05.ts diff --git a/example/type06/case06.ts b/examples/type06/case06.ts similarity index 100% rename from example/type06/case06.ts rename to examples/type06/case06.ts diff --git a/example/type06/case07.ts b/examples/type06/case07.ts similarity index 100% rename from example/type06/case07.ts rename to examples/type06/case07.ts diff --git a/example/type06/tsconfig.json b/examples/type06/tsconfig.json similarity index 100% rename from example/type06/tsconfig.json rename to examples/type06/tsconfig.json diff --git a/example/type07/case001.ts b/examples/type07/case001.ts similarity index 100% rename from example/type07/case001.ts rename to examples/type07/case001.ts diff --git a/example/type07/case002.ts b/examples/type07/case002.ts similarity index 100% rename from example/type07/case002.ts rename to examples/type07/case002.ts diff --git a/example/type07/case003.ts b/examples/type07/case003.ts similarity index 100% rename from example/type07/case003.ts rename to examples/type07/case003.ts diff --git a/example/type07/case004.ts b/examples/type07/case004.ts similarity index 100% rename from example/type07/case004.ts rename to examples/type07/case004.ts diff --git a/example/type07/fast-maker/ChildlikeCls.ts b/examples/type07/fast-maker/ChildlikeCls.ts similarity index 100% rename from example/type07/fast-maker/ChildlikeCls.ts rename to examples/type07/fast-maker/ChildlikeCls.ts diff --git a/example/type07/fast-maker/FlakyCls.ts b/examples/type07/fast-maker/FlakyCls.ts similarity index 100% rename from example/type07/fast-maker/FlakyCls.ts rename to examples/type07/fast-maker/FlakyCls.ts diff --git a/example/type07/fast-maker/WhisperingCls.ts b/examples/type07/fast-maker/WhisperingCls.ts similarity index 100% rename from example/type07/fast-maker/WhisperingCls.ts rename to examples/type07/fast-maker/WhisperingCls.ts diff --git a/example/type07/fast-maker/__tests__/juvenile.test.ts b/examples/type07/fast-maker/__tests__/juvenile.test.ts similarity index 100% rename from example/type07/fast-maker/__tests__/juvenile.test.ts rename to examples/type07/fast-maker/__tests__/juvenile.test.ts diff --git a/example/type07/fast-maker/carpenter/DiscussionCls.ts b/examples/type07/fast-maker/carpenter/DiscussionCls.ts similarity index 100% rename from example/type07/fast-maker/carpenter/DiscussionCls.ts rename to examples/type07/fast-maker/carpenter/DiscussionCls.ts diff --git a/example/type07/fast-maker/carpenter/MakeshiftCls.ts b/examples/type07/fast-maker/carpenter/MakeshiftCls.ts similarity index 100% rename from example/type07/fast-maker/carpenter/MakeshiftCls.ts rename to examples/type07/fast-maker/carpenter/MakeshiftCls.ts diff --git a/example/type07/tsconfig.json b/examples/type07/tsconfig.json similarity index 100% rename from example/type07/tsconfig.json rename to examples/type07/tsconfig.json diff --git a/example/type08/Bar.ts b/examples/type08/Bar.ts similarity index 100% rename from example/type08/Bar.ts rename to examples/type08/Bar.ts diff --git a/example/type08/Foo.ts b/examples/type08/Foo.ts similarity index 100% rename from example/type08/Foo.ts rename to examples/type08/Foo.ts diff --git a/example/type08/tsconfig.json b/examples/type08/tsconfig.json similarity index 100% rename from example/type08/tsconfig.json rename to examples/type08/tsconfig.json diff --git a/example/type09/DeclareTtfModule.d.ts b/examples/type09/DeclareTtfModule.d.ts similarity index 100% rename from example/type09/DeclareTtfModule.d.ts rename to examples/type09/DeclareTtfModule.d.ts diff --git a/example/type09/WildcardDeclaration.ts b/examples/type09/WildcardDeclaration.ts similarity index 100% rename from example/type09/WildcardDeclaration.ts rename to examples/type09/WildcardDeclaration.ts diff --git a/example/type09/tsconfig.json b/examples/type09/tsconfig.json similarity index 100% rename from example/type09/tsconfig.json rename to examples/type09/tsconfig.json diff --git a/example/type10/.ctirc b/examples/type10/.ctirc similarity index 75% rename from example/type10/.ctirc rename to examples/type10/.ctirc index a0b538c..5e37f05 100644 --- a/example/type10/.ctirc +++ b/examples/type10/.ctirc @@ -5,17 +5,17 @@ "options": [ { "mode": "module", - "project": "example/type10/tsconfig.json", + "project": "examples/type10/tsconfig.json", "exportFilename": "index.ts", "directive": "/// ", - "output": "example/type10/components", + "output": "examples/type10/components", "overwrite": true, "backup": false, "include": ["components/**/*.vue"] }, { "mode": "bundle", - "project": "example/type10/tsconfig.json", + "project": "examples/type10/tsconfig.json", "exportFilename": "index.ts", "useSemicolon": true, "useBanner": false, @@ -29,8 +29,8 @@ "include": ["**/*.ts"], "exclude": [], "skipEmptyDir": true, - "startFrom": "/Users/imjuni/project/github/ctix/ctix/example/type10", - "output": "example/type10", + "startFrom": "./examples/type10", + "output": "examples/type10", "removeBackup": false, "forceYes": false } diff --git a/example/type10/components/Bar.vue b/examples/type10/components/Bar.vue similarity index 100% rename from example/type10/components/Bar.vue rename to examples/type10/components/Bar.vue diff --git a/example/type10/components/Foo.vue b/examples/type10/components/Foo.vue similarity index 100% rename from example/type10/components/Foo.vue rename to examples/type10/components/Foo.vue diff --git a/example/type10/lib/something.ts b/examples/type10/lib/something.ts similarity index 100% rename from example/type10/lib/something.ts rename to examples/type10/lib/something.ts diff --git a/example/type10/tsconfig.json b/examples/type10/tsconfig.json similarity index 100% rename from example/type10/tsconfig.json rename to examples/type10/tsconfig.json diff --git a/example/type10/types/vue.d.ts b/examples/type10/types/vue.d.ts similarity index 100% rename from example/type10/types/vue.d.ts rename to examples/type10/types/vue.d.ts diff --git a/example/type11/components/index.ts b/examples/type11/components/index.ts similarity index 100% rename from example/type11/components/index.ts rename to examples/type11/components/index.ts diff --git a/example/type11/tsconfig.json b/examples/type11/tsconfig.json similarity index 100% rename from example/type11/tsconfig.json rename to examples/type11/tsconfig.json diff --git a/src/comments/__tests__/inline.comment.parser.test.ts b/src/comments/__tests__/inline.comment.parser.test.ts index ecda657..b5d621c 100644 --- a/src/comments/__tests__/inline.comment.parser.test.ts +++ b/src/comments/__tests__/inline.comment.parser.test.ts @@ -18,7 +18,7 @@ vitest.mock('comment-parser', async (importOriginal) => { }; }); -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/comments/__tests__/inline.excluded.test.ts b/src/comments/__tests__/inline.excluded.test.ts index a72bab6..cd6f3d6 100644 --- a/src/comments/__tests__/inline.excluded.test.ts +++ b/src/comments/__tests__/inline.excluded.test.ts @@ -5,7 +5,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/comments/__tests__/inline.generation.style.test.ts b/src/comments/__tests__/inline.generation.style.test.ts index e78aa33..3f41b56 100644 --- a/src/comments/__tests__/inline.generation.style.test.ts +++ b/src/comments/__tests__/inline.generation.style.test.ts @@ -15,7 +15,7 @@ vitest.mock('comment-parser', async (importOriginal) => { }; }); -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/comments/__tests__/node.comments.test.ts b/src/comments/__tests__/node.comments.test.ts index 80d924c..b50ad3f 100644 --- a/src/comments/__tests__/node.comments.test.ts +++ b/src/comments/__tests__/node.comments.test.ts @@ -5,7 +5,7 @@ import { randomUUID } from 'crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it, vitest } from 'vitest'; -const tsconfigDirPath = posixJoin(process.cwd(), 'example'); +const tsconfigDirPath = posixJoin(process.cwd(), 'examples'); const tsconfigFilePath = posixJoin(tsconfigDirPath, 'tsconfig.example.json'); const context = { tsconfig: tsconfigFilePath, diff --git a/src/compilers/__tests__/export.assignement.map.test.ts b/src/compilers/__tests__/export.assignement.map.test.ts index 13265d6..44ae15b 100644 --- a/src/compilers/__tests__/export.assignement.map.test.ts +++ b/src/compilers/__tests__/export.assignement.map.test.ts @@ -4,7 +4,7 @@ import { randomUUID } from 'crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigDirPath = posixJoin(process.cwd(), 'example'); +const tsconfigDirPath = posixJoin(process.cwd(), 'examples'); const tsconfigFilePath = posixJoin(tsconfigDirPath, 'tsconfig.example.json'); const context = { tsconfig: tsconfigFilePath, diff --git a/src/compilers/__tests__/export.kind.exception.test.ts b/src/compilers/__tests__/export.kind.exception.test.ts index c38269e..d942df9 100644 --- a/src/compilers/__tests__/export.kind.exception.test.ts +++ b/src/compilers/__tests__/export.kind.exception.test.ts @@ -4,7 +4,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { beforeAll, describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context: { tsconfig: string; project: tsm.Project; diff --git a/src/compilers/__tests__/export.statement.summary.test.ts b/src/compilers/__tests__/export.statement.summary.test.ts index 52529ed..bb665c6 100644 --- a/src/compilers/__tests__/export.statement.summary.test.ts +++ b/src/compilers/__tests__/export.statement.summary.test.ts @@ -8,7 +8,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/export.statements.class.test.ts b/src/compilers/__tests__/export.statements.class.test.ts index f9b709b..99ad376 100644 --- a/src/compilers/__tests__/export.statements.class.test.ts +++ b/src/compilers/__tests__/export.statements.class.test.ts @@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/export.statements.enum.test.ts b/src/compilers/__tests__/export.statements.enum.test.ts index 78a4d75..bcae64b 100644 --- a/src/compilers/__tests__/export.statements.enum.test.ts +++ b/src/compilers/__tests__/export.statements.enum.test.ts @@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/export.statements.function.test.ts b/src/compilers/__tests__/export.statements.function.test.ts index 97def35..96b91a3 100644 --- a/src/compilers/__tests__/export.statements.function.test.ts +++ b/src/compilers/__tests__/export.statements.function.test.ts @@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/export.statements.interface.test.ts b/src/compilers/__tests__/export.statements.interface.test.ts index d52e14c..8306b9c 100644 --- a/src/compilers/__tests__/export.statements.interface.test.ts +++ b/src/compilers/__tests__/export.statements.interface.test.ts @@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/export.statements.literal.test.ts b/src/compilers/__tests__/export.statements.literal.test.ts index 9a44909..4bd3b5d 100644 --- a/src/compilers/__tests__/export.statements.literal.test.ts +++ b/src/compilers/__tests__/export.statements.literal.test.ts @@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/export.statements.module.test.ts b/src/compilers/__tests__/export.statements.module.test.ts index 7a361a2..763ee78 100644 --- a/src/compilers/__tests__/export.statements.module.test.ts +++ b/src/compilers/__tests__/export.statements.module.test.ts @@ -5,7 +5,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { beforeAll, describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context: { tsconfig: string; project: tsm.Project; diff --git a/src/compilers/__tests__/export.statements.source.file.test.ts b/src/compilers/__tests__/export.statements.source.file.test.ts index 37dcbd8..5db2f02 100644 --- a/src/compilers/__tests__/export.statements.source.file.test.ts +++ b/src/compilers/__tests__/export.statements.source.file.test.ts @@ -5,7 +5,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { beforeAll, describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context: { tsconfig: string; project: tsm.Project; diff --git a/src/compilers/__tests__/export.statements.type.alias.test.ts b/src/compilers/__tests__/export.statements.type.alias.test.ts index 233a787..dce4494 100644 --- a/src/compilers/__tests__/export.statements.type.alias.test.ts +++ b/src/compilers/__tests__/export.statements.type.alias.test.ts @@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/export.statements.variable.test.ts b/src/compilers/__tests__/export.statements.variable.test.ts index 7117879..6a4696a 100644 --- a/src/compilers/__tests__/export.statements.variable.test.ts +++ b/src/compilers/__tests__/export.statements.variable.test.ts @@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/is.declaration.file.test.ts b/src/compilers/__tests__/is.declaration.file.test.ts index f69a776..25761aa 100644 --- a/src/compilers/__tests__/is.declaration.file.test.ts +++ b/src/compilers/__tests__/is.declaration.file.test.ts @@ -4,7 +4,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/symbol.table.test.ts b/src/compilers/__tests__/symbol.table.test.ts index 1e990fe..e4e83ba 100644 --- a/src/compilers/__tests__/symbol.table.test.ts +++ b/src/compilers/__tests__/symbol.table.test.ts @@ -4,7 +4,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ diff --git a/src/compilers/__tests__/tsconfig.test.ts b/src/compilers/__tests__/tsconfig.test.ts index 8bd20b3..283b440 100644 --- a/src/compilers/__tests__/tsconfig.test.ts +++ b/src/compilers/__tests__/tsconfig.test.ts @@ -5,14 +5,14 @@ import { describe, expect, it } from 'vitest'; describe('getTypeScriptConfig', () => { it('reading pass', () => { - const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); + const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const config = getTypeScriptConfig(tsconfigPath); console.log(config); console.log(config.raw); }); it('reading pass', () => { - const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.empty.json'); + const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.empty.json'); const config = getTypeScriptConfig(tsconfigPath); console.log(config.raw); }); @@ -20,7 +20,7 @@ describe('getTypeScriptConfig', () => { describe('getFileScope', () => { it('empty scope', () => { - const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.empty.json'); + const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.empty.json'); const config = getTypeScriptConfig(tsconfigPath); const scopes = getFileScope(config.raw); @@ -28,13 +28,13 @@ describe('getFileScope', () => { }); it('file scope', () => { - const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.for.test.json'); + const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.for.test.json'); const config = getTypeScriptConfig(tsconfigPath); const scopes = getFileScope(config.raw); expect(scopes).toMatchObject({ include: ['src/**/*.ts'], - exclude: ['example/**', 'dist/**', '**/erdia_eg', '**/.configs/**', '**/docs/**/*'], + exclude: ['examples/**', 'dist/**', '**/erdia_eg', '**/.configs/**', '**/docs/**/*'], }); }); }); diff --git a/src/configs/__tests__/tsconfig.comparer.test.ts b/src/configs/__tests__/tsconfig.comparer.test.ts index ba903d4..66e2280 100644 --- a/src/configs/__tests__/tsconfig.comparer.test.ts +++ b/src/configs/__tests__/tsconfig.comparer.test.ts @@ -7,12 +7,12 @@ describe('getTsconfigComparer', () => { const r01 = [ 'tsconfig.eslint.json', 'tsconfig.dts.json', - 'example/tsconfig.empty.json', - 'example/type03/tsconfig.json', + 'examples/tsconfig.empty.json', + 'examples/type03/tsconfig.json', 'tsconfig.prod.json', - 'example/tsconfig.example.json', + 'examples/tsconfig.example.json', 'tsconfig.json', - 'example/tsconfig.for.test.json', + 'examples/tsconfig.for.test.json', ].sort(comparer); expect(r01).toEqual([ @@ -20,10 +20,10 @@ describe('getTsconfigComparer', () => { 'tsconfig.dts.json', 'tsconfig.eslint.json', 'tsconfig.prod.json', - 'example/tsconfig.empty.json', - 'example/tsconfig.example.json', - 'example/tsconfig.for.test.json', - 'example/type03/tsconfig.json', + 'examples/tsconfig.empty.json', + 'examples/tsconfig.example.json', + 'examples/tsconfig.for.test.json', + 'examples/type03/tsconfig.json', ]); }); @@ -33,11 +33,11 @@ describe('getTsconfigComparer', () => { 'tsconfig.json', 'tsconfig.eslint.json', 'tsconfig.dts.json', - 'example/tsconfig.empty.json', - 'example/type03/tsconfig.json', + 'examples/tsconfig.empty.json', + 'examples/type03/tsconfig.json', 'tsconfig.prod.json', - 'example/tsconfig.example.json', - 'example/tsconfig.for.test.json', + 'examples/tsconfig.example.json', + 'examples/tsconfig.for.test.json', ].sort(comparer); expect(r01).toEqual([ @@ -45,10 +45,10 @@ describe('getTsconfigComparer', () => { 'tsconfig.dts.json', 'tsconfig.eslint.json', 'tsconfig.prod.json', - 'example/tsconfig.empty.json', - 'example/tsconfig.example.json', - 'example/tsconfig.for.test.json', - 'example/type03/tsconfig.json', + 'examples/tsconfig.empty.json', + 'examples/tsconfig.example.json', + 'examples/tsconfig.for.test.json', + 'examples/type03/tsconfig.json', ]); }); }); diff --git a/src/modules/file/__tests__/glob.files.test.ts b/src/modules/file/__tests__/glob.files.test.ts index 22bf989..62f7659 100644 --- a/src/modules/file/__tests__/glob.files.test.ts +++ b/src/modules/file/__tests__/glob.files.test.ts @@ -11,17 +11,17 @@ describe('getGlobFiles', () => { expect(files).toEqual([ 'tsconfig.json', - 'example/type11/tsconfig.json', - 'example/type10/tsconfig.json', - 'example/type09/tsconfig.json', - 'example/type08/tsconfig.json', - 'example/type07/tsconfig.json', - 'example/type06/tsconfig.json', - 'example/type05/tsconfig.json', - 'example/type04/tsconfig.json', - 'example/type03/tsconfig.json', - 'example/type02/tsconfig.json', - 'example/type01/tsconfig.json', + 'examples/type11/tsconfig.json', + 'examples/type10/tsconfig.json', + 'examples/type09/tsconfig.json', + 'examples/type08/tsconfig.json', + 'examples/type07/tsconfig.json', + 'examples/type06/tsconfig.json', + 'examples/type05/tsconfig.json', + 'examples/type04/tsconfig.json', + 'examples/type03/tsconfig.json', + 'examples/type02/tsconfig.json', + 'examples/type01/tsconfig.json', ]); }); @@ -35,17 +35,17 @@ describe('getGlobFiles', () => { expect(files).toEqual([ posixJoin(process.cwd(), 'tsconfig.json'), - posixJoin(process.cwd(), 'example/type11/tsconfig.json'), - posixJoin(process.cwd(), 'example/type10/tsconfig.json'), - posixJoin(process.cwd(), 'example/type09/tsconfig.json'), - posixJoin(process.cwd(), 'example/type08/tsconfig.json'), - posixJoin(process.cwd(), 'example/type07/tsconfig.json'), - posixJoin(process.cwd(), 'example/type06/tsconfig.json'), - posixJoin(process.cwd(), 'example/type05/tsconfig.json'), - posixJoin(process.cwd(), 'example/type04/tsconfig.json'), - posixJoin(process.cwd(), 'example/type03/tsconfig.json'), - posixJoin(process.cwd(), 'example/type02/tsconfig.json'), - posixJoin(process.cwd(), 'example/type01/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type11/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type10/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type09/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type08/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type07/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type06/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type05/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type04/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type03/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type02/tsconfig.json'), + posixJoin(process.cwd(), 'examples/type01/tsconfig.json'), ]); }); }); diff --git a/src/modules/scope/__tests__/exclude.container.test.ts b/src/modules/scope/__tests__/exclude.container.test.ts index ec82a23..5ae193e 100644 --- a/src/modules/scope/__tests__/exclude.container.test.ts +++ b/src/modules/scope/__tests__/exclude.container.test.ts @@ -38,7 +38,7 @@ describe('ExcludeContainer', () => { start: 1, column: 1, }, - filePath: 'example/type03/ComparisonCls.tsx', + filePath: 'examples/type03/ComparisonCls.tsx', }, { commentCode: 'inline exclude test', @@ -48,7 +48,7 @@ describe('ExcludeContainer', () => { start: 1, column: 1, }, - filePath: posixResolve('example/type03/HandsomelyCls.tsx'), + filePath: posixResolve('examples/type03/HandsomelyCls.tsx'), }, ], cwd: process.cwd(), @@ -60,7 +60,7 @@ describe('ExcludeContainer', () => { const r04 = container.isExclude( posixJoin(process.cwd(), 'src/cli/builders/setModeBundleOptions.ts'), ); - const r05 = container.isExclude('example/type03/ComparisonCls.tsx'); + const r05 = container.isExclude('examples/type03/ComparisonCls.tsx'); expect(r01).toBeFalsy(); expect(r02).toBeTruthy(); diff --git a/src/modules/scope/__tests__/include.container.test.ts b/src/modules/scope/__tests__/include.container.test.ts index f7c9777..3b4e2de 100644 --- a/src/modules/scope/__tests__/include.container.test.ts +++ b/src/modules/scope/__tests__/include.container.test.ts @@ -77,14 +77,14 @@ describe('IncludeContainer', () => { it('files - string path', () => { const expactation = getGlobFiles( - new Glob('example/type03/**/*.ts', { + new Glob('examples/type03/**/*.ts', { ignore: defaultExclude, cwd: process.cwd(), absolute: true, }), ); const container = new IncludeContainer({ - config: { include: ['example/type03/**/*.ts'] }, + config: { include: ['examples/type03/**/*.ts'] }, cwd: process.cwd(), }); diff --git a/src/templates/__tests__/render.data.test.ts b/src/templates/__tests__/render.data.test.ts index 2bda878..286c170 100644 --- a/src/templates/__tests__/render.data.test.ts +++ b/src/templates/__tests__/render.data.test.ts @@ -8,7 +8,7 @@ import { randomUUID } from 'node:crypto'; import * as tsm from 'ts-morph'; import { describe, expect, it } from 'vitest'; -const tsconfigPath = posixJoin(process.cwd(), 'example', 'tsconfig.example.json'); +const tsconfigPath = posixJoin(process.cwd(), 'examples', 'tsconfig.example.json'); const context = { tsconfig: tsconfigPath, project: new tsm.Project({ @@ -180,7 +180,7 @@ export class DCHero { `; const sourceFile = context.project.createSourceFile( - posixJoin(process.cwd(), 'example', filename), + posixJoin(process.cwd(), 'examples', filename), source.trim(), ); @@ -201,7 +201,7 @@ export class DCHero { }, filename, statements.map((statement) => ({ ...statement, isExcluded: false })), - posixJoin(process.cwd(), 'example'), + posixJoin(process.cwd(), 'examples'), ); expect(r01).toMatchObject({ @@ -222,7 +222,7 @@ export class DCHero { named: [ { path: { - dirPath: posixJoin(process.cwd(), 'example'), + dirPath: posixJoin(process.cwd(), 'examples'), relativePath: '', }, depth: 1, @@ -243,7 +243,7 @@ export class DCHero { { path: { filename, - dirPath: posixJoin(process.cwd(), 'example'), + dirPath: posixJoin(process.cwd(), 'examples'), relativePath: '', }, depth: 1, diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index c2f902b..75b6b1a 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -10,5 +10,5 @@ "vitest.config.ts", "commitlint.config.js" ], - "exclude": ["node_modules/**", "dist/**/*", ".configs/**", "example/**", "docs/**"] + "exclude": ["node_modules/**", "dist/**/*", ".configs/**", "examples/**", "docs/**"] } diff --git a/tsconfig.json b/tsconfig.json index 2c68133..fd3db48 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -52,5 +52,5 @@ "pretty": true }, "include": ["src/**/*.ts"], - "exclude": ["example/**", "dist/**", "**/erdia_eg", "**/.configs/**", "**/docs/**/*"] + "exclude": ["examples/**", "dist/**", "**/erdia_eg", "**/.configs/**", "**/docs/**/*"] } diff --git a/tsconfig.prod.json b/tsconfig.prod.json index 5c22f44..c4c56c9 100644 --- a/tsconfig.prod.json +++ b/tsconfig.prod.json @@ -8,7 +8,7 @@ }, "exclude": [ "**/node_modules/**", - "**/example/**", + "**/examples/**", "**/__test__/**", "**/__tests__/**", "dist/**", diff --git a/vitest.config.ts b/vitest.config.ts index edbf2bd..906a22a 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ provider: 'v8', // or 'v8' all: false, }, - exclude: ['node_modules', 'example'], + exclude: ['node_modules', 'examples'], }, plugins: [tsconfigPaths({ projects: ['tsconfig.json'] })], });