Skip to content

Commit

Permalink
fix(build): add type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Aug 1, 2023
1 parent 65a47bd commit 178c11c
Show file tree
Hide file tree
Showing 25 changed files with 331 additions and 371 deletions.
2 changes: 2 additions & 0 deletions .nxignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
.eslintcache
25 changes: 7 additions & 18 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,31 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "main",
"npmScope": "@myparcel-eslint",
"workspaceLayout": {
"appsDir": "packages",
"libsDir": "packages"
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"{projectRoot}/src/**/*",
"{projectRoot}/package.json",
"{workspaceRoot}/package.json",
"{workspaceRoot}/tsconfig.json"
]
},
"targetDefaults": {
"build": {
"dependsOn": [
"^dts",
"^build"
],
"inputs": [
"default",
"{workspaceRoot}/scripts/build.sh"
],
"outputs": [
"{projectRoot}/dist/index.js",
"{projectRoot}/index.js"
]
"dependsOn": ["^build"],
"inputs": ["default", "{workspaceRoot}/scripts/build.sh"],
"outputs": ["{projectRoot}/dist/**/*", "{projectRoot}/index.js"]
}
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/nx-cloud",
"options": {
"parallel": 10,
"cacheableOperations": [
"build"
],
"parallel": 30,
"cacheableOperations": ["build"],
"accessToken": "NjAwMjIzZDgtNTJiOC00NGFiLThlMWItNWM2NDhlMjM2Y2QwfHJlYWQtd3JpdGU="
}
}
Expand Down
40 changes: 21 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"author": "Edie Lemoine <edie@myparcel.nl>",
"module": "lib/module.mjs",
"workspaces": [
"packages/**"
],
"scripts": {
"build": "nx run-many --target=build --parallel 10",
"clean": "nx run-many --target=clean --parallel 10",
"build": "nx run-many --target=build",
"clean": "nx run-many --target=clean",
"prepare": "is-ci || husky install",
"ws:build": "cd $0 && sh $NX_WORKSPACE_ROOT/scripts/build.sh",
"ws:clean": "cd $0 && rimraf dist index.js"
Expand All @@ -22,26 +21,29 @@
"*.ts": "eslint --fix",
"package.json": "npx sort-package-json"
},
"resolutions": {
"nx": "16.5.3"
},
"devDependencies": {
"@monodeploy/plugin-github": ">= 1",
"@monodeploy/plugin-github": "^1.0.0",
"@myparcel-eslint/eslint-config-es6": "workspace:*",
"@myparcel-eslint/eslint-config-esnext": "workspace:*",
"@myparcel-eslint/eslint-config-typescript": "workspace:*",
"@nrwl/nx-cloud": ">= 16",
"@types/eslint": ">= 8",
"@typescript-eslint/eslint-plugin": ">= 5",
"@typescript-eslint/parser": ">= 5",
"conventional-changelog-conventionalcommits": ">= 6",
"eslint": ">= 8",
"husky": ">= 8",
"is-ci": ">= 3",
"lint-staged": ">= 1",
"monodeploy": ">= 3",
"nx": ">= 16",
"plop": ">= 3",
"rimraf": ">= 3",
"tsup": ">= 6",
"typescript": ">= 5"
"@nrwl/nx-cloud": "^16.0.0",
"@types/eslint": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"conventional-changelog-conventionalcommits": "^6.0.0",
"eslint": "^8.0.0",
"husky": "^8.0.0",
"is-ci": "^3.0.0",
"lint-staged": "^13.0.0",
"monodeploy": "^4.0.0",
"nx": "^16.0.0",
"plop": "^3.0.0",
"rimraf": "^5.0.0",
"tsup": "^7.0.0",
"typescript": "^5.0.0"
},
"packageManager": "yarn@3.4.1"
}
10 changes: 8 additions & 2 deletions packages/eslint-config-cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-es5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-es6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-esnext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
8 changes: 8 additions & 0 deletions packages/eslint-config-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
"export"
],
"license": "MIT",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-prettier-typescript-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-prettier-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-prettier-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-prettier-vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-typescript-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config-vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
],
"repository": "github:myparcelnl/eslint",
"license": "MIT",
"module": "lib/module.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"index.js"
Expand Down
Loading

0 comments on commit 178c11c

Please sign in to comment.