Skip to content

Commit

Permalink
chore(resolve): fix types, remove type build
Browse files Browse the repository at this point in the history
  • Loading branch information
natew committed Dec 27, 2024
1 parent 8606f5e commit 9fd5726
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 4 additions & 5 deletions packages/resolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,24 @@
"sideEffects": false,
"source": "src/index.ts",
"type": "module",
"types": "./types/index.d.ts",
"types": "./src/index.tsx",
"main": "dist/cjs",
"module": "dist/esm",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./types/index.d.ts",
"types": "./src/index.tsx",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
}
},
"files": [
"src",
"types",
"dist"
],
"scripts": {
"build": "tamagui-build",
"watch": "tamagui-build --watch",
"build": "tamagui-build --skip-types",
"watch": "tamagui-build --skip-types --watch",
"lint": "npx biome check src",
"lint:fix": "npx biome check --apply-unsafe src",
"clean": "tamagui-build clean",
Expand Down
2 changes: 1 addition & 1 deletion packages/resolve/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const resolver =
? (path: string, from?: string) => new URL(path, import.meta.url).pathname
: require.resolve

const resolverV2 = (path, from) => {
const resolverV2 = (path: string, from = process.cwd()) => {
const require = module.createRequire(from)
const importPath = require.resolve(path, { paths: [from] })
return importPath
Expand Down
2 changes: 0 additions & 2 deletions packages/resolve/types/index.d.ts

This file was deleted.

0 comments on commit 9fd5726

Please sign in to comment.