kunkun/packages/typescript-config
Huakun 48e2e47f96
Some checks failed
CI / build-test (macos-14) (push) Has been cancelled
CI / build-test (ubuntu-24.04) (push) Has been cancelled
CI / build-test (windows-latest) (push) Has been cancelled
JSR Publish / publish (push) Has been cancelled
NPM Package Publish / publish-npm (push) Has been cancelled
Remove supabase (#263)
* remove supabase package

* upgrade valibot

* removed supabase package

Migration not complete yet

* update submodule

* fixed some supabase errors

* Add new fields to extension models

- Added `id` field to `ExtPublish`
- Expanded `DBExtension` with multiple new properties:
  - `api_version`, `author_id`, `created_at`,
  - `downloads`, `icon`, `identifier`,
  - `long_description`, `name`,
  - `readme`, `short_description`,
  - and `tarball_size`

* Refactor: clean up unused Supabase imports

- Removed commented-out Supabase imports from various files to streamline the codebase.
- Updated `created_at` type in `ExtPublish` model from `date` to `string` for consistency.

* update icon enum to union

* fix type errors after removing supabase

* format

* more types fixed

* feat: enhance command handling and update SDK version
2025-03-26 08:50:55 -04:00
..
base.json File Transfer (Local Network) (#34) 2024-12-11 08:14:40 -05:00
nextjs.json init project with tauri, turborepo and sveltekit 2024-10-24 07:01:00 -04:00
package.json feat: add shadcn-svelte, integrate with @kksh/svelte5 and @kksh/ui 2024-10-24 11:34:58 -04:00
path-alias.json Remove supabase (#263) 2025-03-26 08:50:55 -04:00
README.md feat: add shadcn-svelte, integrate with @kksh/svelte5 and @kksh/ui 2024-10-24 11:34:58 -04:00

To extend the base.json config, use relative path

"extends": "@kksh/typescript-config/base.json" // no
"extends": "../typescript-config/base.json" // yes

Because the path alias is resolved relative to the file that extends the config. If you install "@kksh/typescript-config": "workspace:*" in the package.json, @kksh/typescript-config actually points to node_modules/packages/typescript-config, and the path alias cannot be correctly resolved. (will need to add another ../).

"paths": {
    "@kksh/ui/*": ["../../packages/ui/*"]
}

needs to become

"paths": {
    "@kksh/ui/*": ["../../../packages/ui/*"]
}

to "escape" from node_modules.

So I'd rather use relative path to extend the config.