Skip to content

Commit 77a2c4c

Browse files
committed
chore: update package configs and publishing scripts
- Refactor publish scripts to use new bash-based publish-unpublished.sh - Add npm and github publish commands with optional force flag - Bump all M3 component packages to version 1.0.2 - Format package.json files with proper indentation - Add repository, keywords, author, license, and publishConfig fields - Standardize package.json structure across all M3 components - Create new publish-unpublished.sh script for selective package publishing
1 parent 48ce8a2 commit 77a2c4c

File tree

9 files changed

+318
-35
lines changed

9 files changed

+318
-35
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"lint": "turbo run lint",
1111
"test": "turbo run test",
1212
"clean": "turbo run clean && rm -rf node_modules .turbo",
13-
"publish:npm": "node scripts/publish-npm.js",
14-
"publish:github": "pnpm build && pnpm publish -r --filter=\"./packages/*\" --no-git-checks --registry https://npm.pkg.github.com",
15-
"publish:both": "pnpm publish:npm && pnpm publish:github",
13+
"publish:npm": "bash scripts/publish-unpublished.sh npm",
14+
"publish:github": "bash scripts/publish-unpublished.sh github",
15+
"publish:npm:force": "bash scripts/publish-unpublished.sh npm --force",
16+
"publish:github:force": "bash scripts/publish-unpublished.sh github --force",
1617
"version:patch": "pnpm --filter \"./packages/*\" exec -- npm version patch",
1718
"version:minor": "pnpm --filter \"./packages/*\" exec -- npm version minor",
1819
"version:major": "pnpm --filter \"./packages/*\" exec -- npm version major"

packages/m3-badge/package.json

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
11
{
22
"name": "@banegasn/m3-badge",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Material Design 3 badge web component",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
8-
"exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } },
9-
"files": ["dist", "README.md"],
10-
"scripts": { "build": "tsc", "dev": "tsc --watch", "clean": "rm -rf dist" },
11-
"dependencies": { "lit": "^3.2.0" },
12-
"devDependencies": { "typescript": "^5.6.3" }
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
12+
}
13+
},
14+
"files": [
15+
"dist",
16+
"README.md"
17+
],
18+
"scripts": {
19+
"build": "tsc",
20+
"dev": "tsc --watch",
21+
"clean": "rm -rf dist"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/banegasn/components.git",
26+
"directory": "packages/m3-badge"
27+
},
28+
"keywords": [
29+
"m3",
30+
"material-design",
31+
"badge",
32+
"web-components",
33+
"components"
34+
],
35+
"author": "banegasn",
36+
"license": "MIT",
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com",
39+
"access": "public"
40+
},
41+
"dependencies": {
42+
"lit": "^3.2.0"
43+
},
44+
"devDependencies": {
45+
"typescript": "^5.6.3"
46+
}
1347
}

packages/m3-chip/package.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@banegasn/m3-chip",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Material Design 3 chip web component with expressive styling",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -11,12 +11,37 @@
1111
"default": "./dist/index.js"
1212
}
1313
},
14-
"files": ["dist", "README.md"],
14+
"files": [
15+
"dist",
16+
"README.md"
17+
],
1518
"scripts": {
1619
"build": "tsc",
1720
"dev": "tsc --watch",
1821
"clean": "rm -rf dist"
1922
},
20-
"dependencies": { "lit": "^3.2.0" },
21-
"devDependencies": { "typescript": "^5.6.3" }
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/banegasn/components.git",
26+
"directory": "packages/m3-chip"
27+
},
28+
"keywords": [
29+
"m3",
30+
"material-design",
31+
"chip",
32+
"web-components",
33+
"components"
34+
],
35+
"author": "banegasn",
36+
"license": "MIT",
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com",
39+
"access": "public"
40+
},
41+
"dependencies": {
42+
"lit": "^3.2.0"
43+
},
44+
"devDependencies": {
45+
"typescript": "^5.6.3"
46+
}
2247
}

packages/m3-dialog/package.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@banegasn/m3-dialog",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Material Design 3 dialog web component with expressive styling",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -11,12 +11,37 @@
1111
"default": "./dist/index.js"
1212
}
1313
},
14-
"files": ["dist", "README.md"],
14+
"files": [
15+
"dist",
16+
"README.md"
17+
],
1518
"scripts": {
1619
"build": "tsc",
1720
"dev": "tsc --watch",
1821
"clean": "rm -rf dist"
1922
},
20-
"dependencies": { "lit": "^3.2.0" },
21-
"devDependencies": { "typescript": "^5.6.3" }
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/banegasn/components.git",
26+
"directory": "packages/m3-dialog"
27+
},
28+
"keywords": [
29+
"m3",
30+
"material-design",
31+
"dialog",
32+
"web-components",
33+
"components"
34+
],
35+
"author": "banegasn",
36+
"license": "MIT",
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com",
39+
"access": "public"
40+
},
41+
"dependencies": {
42+
"lit": "^3.2.0"
43+
},
44+
"devDependencies": {
45+
"typescript": "^5.6.3"
46+
}
2247
}

packages/m3-progress/package.json

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
11
{
22
"name": "@banegasn/m3-progress",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Material Design 3 progress indicator web component",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
8-
"exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } },
9-
"files": ["dist", "README.md"],
10-
"scripts": { "build": "tsc", "dev": "tsc --watch", "clean": "rm -rf dist" },
11-
"dependencies": { "lit": "^3.2.0" },
12-
"devDependencies": { "typescript": "^5.6.3" }
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
12+
}
13+
},
14+
"files": [
15+
"dist",
16+
"README.md"
17+
],
18+
"scripts": {
19+
"build": "tsc",
20+
"dev": "tsc --watch",
21+
"clean": "rm -rf dist"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/banegasn/components.git",
26+
"directory": "packages/m3-progress"
27+
},
28+
"keywords": [
29+
"m3",
30+
"material-design",
31+
"progress",
32+
"web-components",
33+
"components"
34+
],
35+
"author": "banegasn",
36+
"license": "MIT",
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com",
39+
"access": "public"
40+
},
41+
"dependencies": {
42+
"lit": "^3.2.0"
43+
},
44+
"devDependencies": {
45+
"typescript": "^5.6.3"
46+
}
1347
}

packages/m3-tabs/package.json

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
11
{
22
"name": "@banegasn/m3-tabs",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Material Design 3 tabs web component",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
8-
"exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } },
9-
"files": ["dist", "README.md"],
10-
"scripts": { "build": "tsc", "dev": "tsc --watch", "clean": "rm -rf dist" },
11-
"dependencies": { "lit": "^3.2.0" },
12-
"devDependencies": { "typescript": "^5.6.3" }
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
12+
}
13+
},
14+
"files": [
15+
"dist",
16+
"README.md"
17+
],
18+
"scripts": {
19+
"build": "tsc",
20+
"dev": "tsc --watch",
21+
"clean": "rm -rf dist"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/banegasn/components.git",
26+
"directory": "packages/m3-tabs"
27+
},
28+
"keywords": [
29+
"m3",
30+
"material-design",
31+
"tabs",
32+
"web-components",
33+
"components"
34+
],
35+
"author": "banegasn",
36+
"license": "MIT",
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com",
39+
"access": "public"
40+
},
41+
"dependencies": {
42+
"lit": "^3.2.0"
43+
},
44+
"devDependencies": {
45+
"typescript": "^5.6.3"
46+
}
1347
}

packages/m3-text-field/package.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@banegasn/m3-text-field",
3-
"version": "1.0.0",
4-
"description": "Material Design 3 text field web component with expressive styling",
3+
"version": "1.0.2",
4+
"description": "Material Design 3 text field web component",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
@@ -20,6 +20,24 @@
2020
"dev": "tsc --watch",
2121
"clean": "rm -rf dist"
2222
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/banegasn/components.git",
26+
"directory": "packages/m3-text-field"
27+
},
28+
"keywords": [
29+
"m3",
30+
"material-design",
31+
"text-field",
32+
"web-components",
33+
"components"
34+
],
35+
"author": "banegasn",
36+
"license": "MIT",
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com",
39+
"access": "public"
40+
},
2341
"dependencies": {
2442
"lit": "^3.2.0"
2543
},

packages/m3-tooltip/package.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@banegasn/m3-tooltip",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Material Design 3 tooltip web component",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -11,12 +11,37 @@
1111
"default": "./dist/index.js"
1212
}
1313
},
14-
"files": ["dist", "README.md"],
14+
"files": [
15+
"dist",
16+
"README.md"
17+
],
1518
"scripts": {
1619
"build": "tsc",
1720
"dev": "tsc --watch",
1821
"clean": "rm -rf dist"
1922
},
20-
"dependencies": { "lit": "^3.2.0" },
21-
"devDependencies": { "typescript": "^5.6.3" }
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/banegasn/components.git",
26+
"directory": "packages/m3-tooltip"
27+
},
28+
"keywords": [
29+
"m3",
30+
"material-design",
31+
"tooltip",
32+
"web-components",
33+
"components"
34+
],
35+
"author": "banegasn",
36+
"license": "MIT",
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com",
39+
"access": "public"
40+
},
41+
"dependencies": {
42+
"lit": "^3.2.0"
43+
},
44+
"devDependencies": {
45+
"typescript": "^5.6.3"
46+
}
2247
}

0 commit comments

Comments
 (0)