Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab89f2a

Browse files
committed
chore: wip
1 parent b98f7e6 commit ab89f2a

File tree

4 files changed

+80
-18
lines changed

4 files changed

+80
-18
lines changed

nx.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
"options": {
2020
"cacheableOperations": [
2121
"build",
22+
"copy-ast-spec",
2223
"test",
2324
"package",
2425
"prepare",
2526
"typecheck"
2627
],
27-
"strictlyOrderedTargets": ["prebuild", "build", "package", "prepare"],
28+
"strictlyOrderedTargets": ["build", "package", "prepare"],
2829
"accessToken": "YjFjNTBhOWUtY2JmNy00ZDhiLWE5N2UtZjliNDAwNmIzOTdjfHJlYWQtd3JpdGU=",
2930
"canTrackAnalytics": false,
3031
"showUsageWarnings": true,
@@ -34,10 +35,6 @@
3435
},
3536
"targetDependencies": {
3637
"build": [
37-
{
38-
"target": "prebuild",
39-
"projects": "dependencies"
40-
},
4138
{
4239
"target": "build",
4340
"projects": "dependencies"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
1818
},
1919
"scripts": {
20-
"build": "npx nx prebuild @typescript-eslint/types && nx run-many --target=build --all --parallel",
20+
"build": "nx run-many --target=build --all --parallel",
2121
"check-clean-workspace-after-install": "git diff --quiet --exit-code",
2222
"check-configs": "nx run-many --target=check-configs --all --parallel",
2323
"check-docs": "nx run-many --target=check-docs --all --parallel",

packages/types/package.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@
2727
"license": "MIT",
2828
"main": "dist/index.js",
2929
"types": "dist/index.d.ts",
30-
"scripts": {
31-
"prebuild": "yarn ts-node --transpile-only ./tools/copy-ast-spec.ts",
32-
"build": "tsc -b tsconfig.build.json",
33-
"postbuild": "downlevel-dts dist _ts3.4/dist",
34-
"clean": "tsc -b tsconfig.build.json --clean",
35-
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
36-
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",
37-
"generate:lib": "../../node_modules/.bin/ts-node --files --transpile-only ../scope-manager/tools/generate-lib.ts",
38-
"lint": "eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",
39-
"typecheck": "tsc -p tsconfig.json --noEmit"
40-
},
4130
"funding": {
4231
"type": "opencollective",
4332
"url": "https://opencollective.com/typescript-eslint"

workspace.json

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,83 @@
3535
},
3636
"@typescript-eslint/types": {
3737
"root": "packages/types",
38-
"type": "library"
38+
"type": "library",
39+
"targets": {
40+
"build": {
41+
"dependsOn": [
42+
{
43+
"target": "copy-ast-spec",
44+
"projects": "self"
45+
},
46+
{
47+
"target": "build",
48+
"projects": "dependencies"
49+
}
50+
],
51+
"executor": "@nrwl/workspace:run-commands",
52+
"outputs": ["packages/types/dist"],
53+
"options": {
54+
"cwd": "packages/types",
55+
"parallel": false,
56+
"commands": [
57+
"npx tsc -b tsconfig.build.json",
58+
"npx downlevel-dts dist _ts3.4/dist"
59+
]
60+
}
61+
},
62+
"copy-ast-spec": {
63+
"executor": "@nrwl/workspace:run-commands",
64+
"outputs": ["packages/types/src/ast-spec.ts"],
65+
"options": {
66+
"cwd": "packages/types",
67+
"parallel": false,
68+
"commands": [
69+
"yarn ts-node --transpile-only ./tools/copy-ast-spec.ts"
70+
]
71+
}
72+
},
73+
"clean": {
74+
"executor": "@nrwl/workspace:run-commands",
75+
"options": {
76+
"cwd": "packages/types",
77+
"parallel": false,
78+
"commands": [
79+
"npx tsc -b tsconfig.build.json --clean",
80+
"npx rimraf dist",
81+
"npx rimraf _ts3.4",
82+
"npx rimraf coverage"
83+
]
84+
}
85+
},
86+
"typecheck": {
87+
"dependsOn": [
88+
{
89+
"target": "copy-ast-spec",
90+
"projects": "self"
91+
},
92+
{
93+
"target": "build",
94+
"projects": "dependencies"
95+
}
96+
],
97+
"executor": "@nrwl/workspace:run-commands",
98+
"options": {
99+
"cwd": "packages/types",
100+
"parallel": false,
101+
"commands": ["npx tsc -p tsconfig.json --noEmit"]
102+
}
103+
},
104+
"generate-lib": {
105+
"executor": "@nrwl/workspace:run-commands",
106+
"options": {
107+
"cwd": "packages/types",
108+
"parallel": false,
109+
"commands": [
110+
"../../node_modules/.bin/ts-node --files --transpile-only ../scope-manager/tools/generate-lib.ts"
111+
]
112+
}
113+
}
114+
}
39115
},
40116
"@typescript-eslint/typescript-estree": {
41117
"root": "packages/typescript-estree",

0 commit comments

Comments
 (0)