Skip to content

Commit

Permalink
chore!: Change to monorepo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintyj committed Nov 11, 2023
1 parent f03b11d commit e58b9cb
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 76 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# dist
/dist
dist

# dependencies
/node_modules
node_modules

# IDEs and editors
/.idea
Expand All @@ -17,3 +17,6 @@ gitignore
# System Files
.DS_Store
Thumbs.db

# Tes files
coverage
10 changes: 8 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ export default antfu(
quotes: 'single',
},
ignores: [
'dist',
'**/dist',
'.idea',
],
overrides: {
typescript: {
'ts/consistent-type-definitions': ['error', 'type'],
'ts/no-unsafe-assignment': 'warn',
'ts/no-unsafe-member-access': 'warn',
},
},
},
{
files: ['tsconfig.json', 'package.json'],
Expand All @@ -24,7 +31,6 @@ export default antfu(
{
rules: {
'style/semi': ['error', 'always'],
'ts/consistent-type-definitions': ['error', 'type'],
},
},
);
20 changes: 2 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@
"conventional",
"github"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"scripts": {
"watch": "tsup --watch",
"build": "tsup",
"watch": "pnpm -r --parallel run watch",
"build": "pnpm -r run build",
"test": "vitest",
"prepare": "husky install",
"lint:es": "eslint .",
Expand All @@ -36,8 +29,6 @@
"@antfu/eslint-config": "^1.1.0",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^18.2.0",
"@commitlint/types": "^18.1.0",
"@types/node": "^20.9.0",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.53.0",
"husky": "^8.0.3",
Expand All @@ -48,12 +39,5 @@
},
"lint-staged": {
"*": "eslint --fix"
},
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@commitlint/config-conventional": "^18.1.0",
"@commitlint/lint": "^18.1.0",
"@commitlint/load": "^18.2.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions packages/commitlint/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "@kevintyj/csetslinter",
"type": "module",
"version": "0.0.0",
"private": false,
"author": "Kevin Taeyoon Jin <[email protected]>",
"license": "BSD-3-Clause",
"homepage": "https://github.com/kevintyj/conventionalsets#readme",
"repository": "github:kevintyj/conventionalsets",
"bugs": {
"url": "https://github.com/kevintyj/conventionalsets/issues"
},
"keywords": [
"changesets",
"conventional",
"github"
],
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"watch": "tsup --watch",
"build": "tsup",
"test": "vitest",
"lint:es": "eslint .",
"clean": "git clean -fdX",
"ci": "pnpm run lint:es && pnpm run build",
"release": "pnpm run ci && changeset publish"
},
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@commitlint/config-conventional": "^18.1.0",
"@commitlint/lint": "^18.1.0",
"@commitlint/load": "^18.2.0"
},
"devDependencies": {
"@commitlint/types": "^18.1.0",
"@types/node": "^20.9.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
122 changes: 68 additions & 54 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- packages/*

0 comments on commit e58b9cb

Please sign in to comment.