Skip to content

Commit

Permalink
Fix Wireit caching (#1528)
Browse files Browse the repository at this point in the history
* Add `moduleResolution` to `tsconfig.spec.json`

Co-authored-by: Alex Sanders <alex@sndrs.dev>

* Relocate `tokens.json` from project root

Co-authored-by: Alex Sanders <alex@sndrs.dev>

* Update Wireit config to prevent caching issues

Co-authored-by: Alex Sanders <alex@sndrs.dev>

* Remove copy of Storybook `main.js` from project root

Co-authored-by: Alex Sanders <alex@sndrs.dev>

* Remove `atoms-rendering` folder as has moved to DCR

Co-authored-by: Alex Sanders <alex@sndrs.dev>

---------

Co-authored-by: Alex Sanders <alex@sndrs.dev>
  • Loading branch information
jamesmockett and sndrs committed Jun 11, 2024
1 parent e351b21 commit ecfddf5
Show file tree
Hide file tree
Showing 30 changed files with 219 additions and 658 deletions.
28 changes: 16 additions & 12 deletions libs/@guardian/ab-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,43 +50,46 @@
"build": {
"command": "rollup -c",
"files": [
"../../../configs/rollup/rollup.config.js",
"./rollup.config.js",
"src/**",
"package.json",
"tsconfig.json"
"tsconfig.json",
"rollup.config.js",
"../../../configs/rollup/rollup.config.js"
],
"output": [
"dist"
]
},
"fix": {
"command": "eslint --cache --color . --fix",
"clean": false,
"files": [
"**",
"../../../.eslint*",
"!(dist)/**",
"!(.eslintcache)",
"../../../.eslint*"
"!.eslintcache"
],
"clean": false,
"output": [
"."
]
},
"lint": {
"command": "eslint --cache --color .",
"files": [
"**",
"../../../.eslint*",
"!(dist)/**",
"!(.eslintcache)",
"../../../.eslint*"
"!.eslintcache"
],
"output": []
},
"test": {
"command": "jest",
"files": [
"**",
"../../../configs/jest.*",
"!(dist)/**",
"!(.eslintcache)",
"../../../configs/jest.*"
"!.eslintcache"
],
"output": []
},
Expand All @@ -96,9 +99,10 @@
"build"
],
"files": [
"**",
"../../../configs/jest.*",
"!(dist)/**",
"!(.eslintcache)",
"../../../configs/jest.*"
"!.eslintcache"
],
"output": []
}
Expand Down
1 change: 1 addition & 0 deletions libs/@guardian/ab-core/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"module": "commonjs",
"moduleResolution": "node",
"types": ["jest", "node"]
},
"include": [
Expand Down
28 changes: 16 additions & 12 deletions libs/@guardian/ab-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,43 +62,46 @@
"build": {
"command": "rollup -c",
"files": [
"../../../configs/rollup/rollup.config.js",
"./rollup.config.js",
"src/**",
"package.json",
"tsconfig.json"
"tsconfig.json",
"rollup.config.js",
"../../../configs/rollup/rollup.config.js"
],
"output": [
"dist"
]
},
"fix": {
"command": "eslint --cache --color . --fix",
"clean": false,
"files": [
"**",
"../../../.eslint*",
"!(dist)/**",
"!(.eslintcache)",
"../../../.eslint*"
"!.eslintcache"
],
"clean": false,
"output": [
"."
]
},
"lint": {
"command": "eslint --cache --color .",
"files": [
"**",
"../../../.eslint*",
"!(dist)/**",
"!(.eslintcache)",
"../../../.eslint*"
"!.eslintcache"
],
"output": []
},
"test": {
"command": "jest",
"files": [
"**",
"../../../configs/jest.*",
"!(dist)/**",
"!(.eslintcache)",
"../../../configs/jest.*"
"!.eslintcache"
],
"output": []
},
Expand All @@ -108,9 +111,10 @@
"build"
],
"files": [
"**",
"../../../configs/jest.*",
"!(dist)/**",
"!(.eslintcache)",
"../../../configs/jest.*"
"!.eslintcache"
],
"output": []
}
Expand Down
1 change: 1 addition & 0 deletions libs/@guardian/ab-react/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"module": "commonjs",
"moduleResolution": "node",
"types": ["jest", "node"]
},
"include": [
Expand Down
Loading

0 comments on commit ecfddf5

Please sign in to comment.