Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scripts/commands/scaffold/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const prettierConfig: prettier.Options = {
};

export async function scaffold(name: string, type: 'hook' | 'component' | 'util') {
const directory = path.join(getRootPath(), `./src/${type}s/${name}`);
const directory = path.join(getRootPath(), `./packages/core/src/${type}s/${name}`);
const ext = type === 'component' ? 'tsx' : 'ts';

const tasks = new Listr(
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default [
files: ['packages/**/*.{ts,tsx}'],
languageOptions: {
parserOptions: {
project: './packages/*/tsconfig.json',
project: './packages/**/tsconfig.json',
},
},
},
Expand Down
31 changes: 9 additions & 22 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"bugs": "https://github.com/toss/react-simplikit/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/toss/react-simplikit.git"
"url": "git+https://github.com/toss/react-simplikit.git",
"directory": "packages/core"
},
"license": "MIT",
"files": [
Expand All @@ -20,25 +21,12 @@
],
"scripts": {
"build": "tsup",
"clean": "rimraf ./dist ./esm ./coverage ./node_modules",
"scaffold": "tsx .scripts/index.ts scaffold",
"changeset": "changeset",
"changeset:version": "changeset version",
"changeset:publish": "changeset publish",
"docs:gen": "tsx .scripts/index.ts generate-docs",
"docs:dev": "vitepress dev",
"docs:build": "vitepress build",
"docs:preview": "vitepress preview",
"fix": "yarn run fix:lint && yarn run fix:format",
"fix:format": "prettier . --write",
"fix:lint": "eslint src --fix",
"test": "yarn run test:lint && yarn run test:format && yarn run test:type && yarn run test:spec && yarn run test:coverage",
"test:format": "prettier . --list-different",
"test:lint": "eslint src",
"test:type": "tsc --noEmit",
"test:spec": "vitest run",
"test:coverage": "vitest run --coverage",
"prepack": "tsup"
"clean": "rimraf ./dist ./esm",
"lint": "eslint src",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -106,6 +94,5 @@
},
"peerDependencies": {
"react": "*"
},
"packageManager": "yarn@4.10.2"
}
}
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"jsx": "react-jsx",
"types": ["@testing-library/jest-dom"]
},
"include": ["src"],
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
5 changes: 4 additions & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@
"scripts": {
"build": "tsup",
"clean": "rimraf ./dist",
"lint": "eslint src",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"peerDependencies": {
"react": ">=18.0.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/mobile/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"strict": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"paths": {
"@react-simplikit/mobile": ["./src/index.ts"]
}
"types": ["@testing-library/jest-dom"]
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
Expand Down
Loading