Skip to content

Commit 85e914c

Browse files
committed
chore: fix test command in second-gen and add eslint dev dependency
1 parent 0107b93 commit 85e914c

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
},
1616
"type": "module",
1717
"scripts": {
18-
"build": "yarn build:*",
18+
"build": "yarn build:first-gen && yarn build:second-gen",
1919
"build:first-gen": "yarn workspace @adobe/spectrum-web-components build",
2020
"build:second-gen": "yarn workspace @adobe/swc build",
21-
"lint": "yarn lint:*",
21+
"lint": "yarn lint:first-gen && yarn lint:second-gen",
2222
"lint:first-gen": "yarn workspace @adobe/spectrum-web-components lint",
2323
"lint:second-gen": "yarn workspace @adobe/swc lint",
2424
"postinstall": "husky || true && patch-package",
25-
"start": "yarn start:*",
25+
"start": "yarn start:first-gen & yarn start:second-gen",
2626
"start:first-gen": "yarn workspace @adobe/spectrum-web-components start",
2727
"start:second-gen": "yarn workspace @adobe/swc start",
28-
"test": "yarn test:*",
28+
"test": "yarn test:first-gen & yarn test:second-gen",
2929
"test:first-gen": "yarn workspace @adobe/spectrum-web-components test",
3030
"test:second-gen": "yarn workspace @adobe/swc test"
3131
},

second-gen/.eslintrc.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@
143143
}
144144
],
145145
"no-debugger": 2,
146-
"notice/notice": [
147-
"error",
148-
{
149-
"mustMatch": "Copyright [0-9]{0,4} Adobe. All rights reserved.",
150-
"templateFile": "first-gen/config/license.js"
151-
}
152-
],
153146
"simple-import-sort/imports": [
154147
"error",
155148
{

second-gen/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"packages/*"
2828
],
2929
"devDependencies": {
30+
"eslint": "8.57.1",
3031
"eslint-plugin-simple-import-sort": "^12.1.1"
3132
},
3233
"keywords": [

second-gen/packages/swc/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
"author": "Adobe",
77
"homepage": "https://opensource.adobe.com/spectrum-web-components/",
88
"repository": {
9+
"directory": "second-gen/packages/swc",
910
"type": "git",
10-
"url": "https://github.com/adobe/spectrum-web-components.git",
11-
"directory": "second-gen/packages/swc"
11+
"url": "https://github.com/adobe/spectrum-web-components.git"
1212
},
1313
"bugs": {
1414
"url": "https://github.com/adobe/spectrum-web-components/issues"
1515
},
1616
"type": "module",
17-
"main": "./dist/index.js",
18-
"types": "./dist/index.d.ts",
1917
"exports": {
2018
".": {
2119
"types": "./dist/index.d.ts",
@@ -30,6 +28,7 @@
3028
"import": "./dist/components/*/index.js"
3129
}
3230
},
31+
"main": "./dist/index.js",
3332
"files": [
3433
"dist/"
3534
],
@@ -42,10 +41,12 @@
4241
"prestorybook": "cem analyze",
4342
"storybook": "storybook dev -p 6006",
4443
"storybook:build": "storybook build",
45-
"test": "yarn workspace @swc/core dev & vitest",
44+
"test": "vitest --run",
4645
"test:coverage": "vitest --coverage",
47-
"test:ui": "vitest --ui"
46+
"test:ui": "vitest --ui",
47+
"test:watch": "yarn workspace @swc/core dev & vitest"
4848
},
49+
"types": "./dist/index.d.ts",
4950
"dependencies": {
5051
"@swc/core": "workspace:*",
5152
"lit": "^2.5.0 || ^3.1.3"

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ __metadata:
304304
version: 0.0.0-use.local
305305
resolution: "@adobe/swc@workspace:second-gen"
306306
dependencies:
307+
eslint: "npm:8.57.1"
307308
eslint-plugin-simple-import-sort: "npm:^12.1.1"
308309
languageName: unknown
309310
linkType: soft

0 commit comments

Comments
 (0)