├── .cliff-jumperrc.yml ├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .gitattributes ├── .github ├── CODEOWNERS ├── hooks │ ├── commit-msg │ └── pre-commit ├── renovate.json └── workflows │ ├── auto-deprecate.yml │ ├── codeql-analysis.yml │ ├── continuous-delivery.yml │ ├── continuous-integration.yml │ ├── deprecate-on-merge.yml │ ├── documentation.yml │ ├── labelsync.yml │ └── publish.yml ├── .gitignore ├── .npm-deprecaterc.yml ├── .rollup-type-bundlerrc.yml ├── .typedoc-json-parserrc.yml ├── .vscode ├── extensions.json └── settings.json ├── .yarn ├── plugins │ └── @yarnpkg │ │ └── plugin-git-hooks.cjs └── releases │ └── yarn-4.12.0.cjs ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── cliff.toml ├── package.json ├── scripts └── make-import.mjs ├── sonar-project.properties ├── src ├── index.ts ├── lib │ ├── errors │ │ ├── LoaderError.ts │ │ └── MissingExportsError.ts │ ├── internal │ │ ├── Path.ts │ │ ├── RootScan.ts │ │ ├── constants.ts │ │ └── internal.d.ts │ ├── shared │ │ └── Container.ts │ ├── strategies │ │ ├── ILoaderStrategy.ts │ │ ├── LoaderStrategy.ts │ │ ├── Shared.ts │ │ └── env.ts │ └── structures │ │ ├── AliasPiece.ts │ │ ├── AliasStore.ts │ │ ├── Piece.ts │ │ ├── PieceLocation.ts │ │ ├── Store.ts │ │ └── StoreRegistry.ts └── tsconfig.json ├── tests ├── fixtures │ ├── commonjs │ │ ├── main │ │ │ └── package.json │ │ └── module │ │ │ └── package.json │ ├── module │ │ ├── main │ │ │ └── package.json │ │ └── module │ │ │ └── package.json │ ├── no-package │ │ └── nofile.gitkeep │ └── no-type │ │ ├── main │ │ └── package.json │ │ └── module │ │ └── package.json ├── lib │ └── internal │ │ └── RootScan.test.ts └── tsconfig.json ├── tsconfig.base.json ├── tsconfig.eslint.json ├── tsup.config.ts ├── typedoc.json ├── vitest.config.ts └── yarn.lock /.cliff-jumperrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.cliff-jumperrc.yml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@sapphire" 3 | } 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/hooks/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | yarn commitlint --edit $1 -------------------------------------------------------------------------------- /.github/hooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | yarn lint-staged -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/renovate.json -------------------------------------------------------------------------------- /.github/workflows/auto-deprecate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/auto-deprecate.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/continuous-delivery.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/continuous-delivery.yml -------------------------------------------------------------------------------- /.github/workflows/continuous-integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/continuous-integration.yml -------------------------------------------------------------------------------- /.github/workflows/deprecate-on-merge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/deprecate-on-merge.yml -------------------------------------------------------------------------------- /.github/workflows/documentation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/documentation.yml -------------------------------------------------------------------------------- /.github/workflows/labelsync.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/labelsync.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.gitignore -------------------------------------------------------------------------------- /.npm-deprecaterc.yml: -------------------------------------------------------------------------------- 1 | name: '*next*' 2 | package: 3 | - '@sapphire/pieces' 4 | -------------------------------------------------------------------------------- /.rollup-type-bundlerrc.yml: -------------------------------------------------------------------------------- 1 | onlyBundle: true 2 | -------------------------------------------------------------------------------- /.typedoc-json-parserrc.yml: -------------------------------------------------------------------------------- 1 | json: 'docs/api.json' 2 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.yarn/plugins/@yarnpkg/plugin-git-hooks.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.yarn/plugins/@yarnpkg/plugin-git-hooks.cjs -------------------------------------------------------------------------------- /.yarn/releases/yarn-4.12.0.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.yarn/releases/yarn-4.12.0.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/README.md -------------------------------------------------------------------------------- /cliff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/cliff.toml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/package.json -------------------------------------------------------------------------------- /scripts/make-import.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/scripts/make-import.mjs -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/sonar-project.properties -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lib/errors/LoaderError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/errors/LoaderError.ts -------------------------------------------------------------------------------- /src/lib/errors/MissingExportsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/errors/MissingExportsError.ts -------------------------------------------------------------------------------- /src/lib/internal/Path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/internal/Path.ts -------------------------------------------------------------------------------- /src/lib/internal/RootScan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/internal/RootScan.ts -------------------------------------------------------------------------------- /src/lib/internal/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/internal/constants.ts -------------------------------------------------------------------------------- /src/lib/internal/internal.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/internal/internal.d.ts -------------------------------------------------------------------------------- /src/lib/shared/Container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/shared/Container.ts -------------------------------------------------------------------------------- /src/lib/strategies/ILoaderStrategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/strategies/ILoaderStrategy.ts -------------------------------------------------------------------------------- /src/lib/strategies/LoaderStrategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/strategies/LoaderStrategy.ts -------------------------------------------------------------------------------- /src/lib/strategies/Shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/strategies/Shared.ts -------------------------------------------------------------------------------- /src/lib/strategies/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/strategies/env.ts -------------------------------------------------------------------------------- /src/lib/structures/AliasPiece.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/structures/AliasPiece.ts -------------------------------------------------------------------------------- /src/lib/structures/AliasStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/structures/AliasStore.ts -------------------------------------------------------------------------------- /src/lib/structures/Piece.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/structures/Piece.ts -------------------------------------------------------------------------------- /src/lib/structures/PieceLocation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/structures/PieceLocation.ts -------------------------------------------------------------------------------- /src/lib/structures/Store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/structures/Store.ts -------------------------------------------------------------------------------- /src/lib/structures/StoreRegistry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/lib/structures/StoreRegistry.ts -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /tests/fixtures/commonjs/main/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tests/fixtures/commonjs/main/package.json -------------------------------------------------------------------------------- /tests/fixtures/commonjs/module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tests/fixtures/commonjs/module/package.json -------------------------------------------------------------------------------- /tests/fixtures/module/main/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tests/fixtures/module/main/package.json -------------------------------------------------------------------------------- /tests/fixtures/module/module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tests/fixtures/module/module/package.json -------------------------------------------------------------------------------- /tests/fixtures/no-package/nofile.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/no-type/main/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "dist/lib/index.js" 3 | } 4 | -------------------------------------------------------------------------------- /tests/fixtures/no-type/module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "module": "dist/lib/index.js" 3 | } 4 | -------------------------------------------------------------------------------- /tests/lib/internal/RootScan.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tests/lib/internal/RootScan.test.ts -------------------------------------------------------------------------------- /tests/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tests/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.eslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tsconfig.eslint.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/typedoc.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sapphiredev/pieces/HEAD/yarn.lock --------------------------------------------------------------------------------