Skip to content

Commit cec4af8

Browse files
authored
Add publint checks (#12445)
1 parent 8e135b6 commit cec4af8

File tree

31 files changed

+147
-42
lines changed

31 files changed

+147
-42
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,12 @@ jobs:
9595
- name: Build Packages
9696
run: pnpm run build
9797

98-
- name: Lint
98+
- name: Lint source code
9999
run: pnpm run lint:ci
100100

101+
- name: Lint publish code
102+
run: pnpm run publint
103+
101104
test:
102105
name: "Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
103106
runs-on: ${{ matrix.os }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/withastro/astro.git"
8+
"url": "git+https://github.com/withastro/astro.git"
99
},
1010
"scripts": {
1111
"release": "pnpm run build && changeset publish",
@@ -37,6 +37,7 @@
3737
"lint": "biome lint && eslint . --report-unused-disable-directives",
3838
"lint:ci": "biome ci --formatter-enabled=false --organize-imports-enabled=false --reporter=github && eslint . --report-unused-disable-directives",
3939
"lint:fix": "biome lint --write --unsafe",
40+
"publint": "pnpm -r --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --no-bail exec publint",
4041
"version": "changeset version && node ./scripts/deps/update-example-versions.js && pnpm install --no-frozen-lockfile && pnpm run format",
4142
"preinstall": "npx only-allow pnpm"
4243
},
@@ -65,6 +66,7 @@
6566
"only-allow": "^1.2.1",
6667
"prettier": "^3.3.3",
6768
"prettier-plugin-astro": "^0.14.1",
69+
"publint": "^0.2.12",
6870
"turbo": "^2.2.3",
6971
"typescript": "~5.6.3",
7072
"typescript-eslint": "^8.13.0"

packages/astro-prism/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"bugs": "https://github.com/withastro/astro/issues",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/astro-prism"
1313
},
1414
"homepage": "https://docs.astro.build/en/reference/api-reference/#prism-",

packages/astro-rss/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/astro-rss"
1313
},
1414
"bugs": "https://github.com/withastro/astro/issues",

packages/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/withastro/astro.git",
10+
"url": "git+https://github.com/withastro/astro.git",
1111
"directory": "packages/astro"
1212
},
1313
"bugs": "https://github.com/withastro/astro/issues",

packages/create-astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/withastro/astro.git",
9+
"url": "git+https://github.com/withastro/astro.git",
1010
"directory": "packages/create-astro"
1111
},
1212
"bugs": "https://github.com/withastro/astro/issues",

packages/db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/withastro/astro.git",
8+
"url": "git+https://github.com/withastro/astro.git",
99
"directory": "packages/db"
1010
},
1111
"bugs": "https://github.com/withastro/astro/issues",

packages/integrations/alpinejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/alpinejs"
1313
},
1414
"keywords": [

packages/integrations/cloudflare/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@astrojs/cloudflare",
33
"version": "0.0.0",
44
"private": true,
5+
"type": "module",
56
"keywords": [],
67
"dont_remove": "This is a placeholder for the sake of the docs smoke test"
78
}

packages/integrations/lit/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/lit"
1313
},
1414
"keywords": [
@@ -21,10 +21,7 @@
2121
"homepage": "https://docs.astro.build/en/guides/integrations-guide/lit/",
2222
"exports": {
2323
".": "./dist/index.js",
24-
"./server.js": {
25-
"default": "./server.js",
26-
"types": "./server.d.ts"
27-
},
24+
"./server.js": "./server.js",
2825
"./client-shim.js": "./client-shim.js",
2926
"./dist/client.js": "./dist/client.js",
3027
"./hydration-support.js": "./hydration-support.js",

packages/integrations/markdoc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/markdoc"
1313
},
1414
"keywords": [

packages/integrations/mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/mdx"
1313
},
1414
"keywords": [

packages/integrations/netlify/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@astrojs/netlify",
33
"version": "0.0.0",
44
"private": true,
5+
"type": "module",
56
"keywords": [],
67
"dont_remove": "This is a placeholder for the sake of the docs smoke test"
78
}

packages/integrations/node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@astrojs/node",
33
"version": "0.0.0",
44
"private": true,
5+
"type": "module",
56
"keywords": [],
67
"dont_remove": "This is a placeholder for the sake of the docs smoke test"
78
}

packages/integrations/partytown/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/partytown"
1313
},
1414
"keywords": [

packages/integrations/preact/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/preact"
1313
},
1414
"keywords": [

packages/integrations/react/package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/react"
1313
},
1414
"keywords": [
@@ -24,14 +24,8 @@
2424
"./actions": "./dist/actions.js",
2525
"./client.js": "./client.js",
2626
"./client-v17.js": "./client-v17.js",
27-
"./server.js": {
28-
"default": "./server.js",
29-
"types": "./server.d.ts"
30-
},
31-
"./server-v17.js": {
32-
"default": "./server-v17.js",
33-
"types": "./server-v17.d.ts"
34-
},
27+
"./server.js": "./server.js",
28+
"./server-v17.js": "./server-v17.js",
3529
"./package.json": "./package.json",
3630
"./jsx-runtime": "./jsx-runtime.js"
3731
},

packages/integrations/sitemap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/sitemap"
1313
},
1414
"keywords": [

packages/integrations/solid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/solid"
1313
},
1414
"keywords": [

packages/integrations/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/svelte"
1313
},
1414
"keywords": [

packages/integrations/tailwind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/tailwind"
1313
},
1414
"keywords": [

packages/integrations/vercel/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@astrojs/vercel",
33
"version": "0.0.0",
44
"private": true,
5+
"type": "module",
56
"keywords": [],
67
"dont_remove": "This is a placeholder for the sake of the docs smoke test"
78
}

packages/integrations/vue/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/withastro/astro.git",
11+
"url": "git+https://github.com/withastro/astro.git",
1212
"directory": "packages/integrations/vue"
1313
},
1414
"keywords": [
@@ -24,10 +24,7 @@
2424
"./editor": "./dist/editor.cjs",
2525
"./*": "./*",
2626
"./client.js": "./client.js",
27-
"./server.js": {
28-
"default": "./server.js",
29-
"types": "./server.d.ts"
30-
},
27+
"./server.js": "./server.js",
3128
"./package.json": "./package.json"
3229
},
3330
"files": [

packages/integrations/web-vitals/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/withastro/astro.git",
10+
"url": "git+https://github.com/withastro/astro.git",
1111
"directory": "packages/integrations/web-vitals"
1212
},
1313
"keywords": [

packages/internal-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/withastro/astro.git",
10+
"url": "git+https://github.com/withastro/astro.git",
1111
"directory": "packages/internal-helpers"
1212
},
1313
"bugs": "https://github.com/withastro/astro/issues",

packages/markdown/remark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/withastro/astro.git",
9+
"url": "git+https://github.com/withastro/astro.git",
1010
"directory": "packages/markdown/remark"
1111
},
1212
"bugs": "https://github.com/withastro/astro/issues",

packages/studio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/withastro/astro.git",
8+
"url": "git+https://github.com/withastro/astro.git",
99
"directory": "packages/studio"
1010
},
1111
"bugs": "https://github.com/withastro/astro/issues",

packages/telemetry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/withastro/astro.git",
10+
"url": "git+https://github.com/withastro/astro.git",
1111
"directory": "packages/telemetry"
1212
},
1313
"bugs": "https://github.com/withastro/astro/issues",

packages/underscore-redirects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/withastro/astro.git",
10+
"url": "git+https://github.com/withastro/astro.git",
1111
"directory": "packages/underscore-redirects"
1212
},
1313
"bugs": "https://github.com/withastro/astro/issues",

packages/upgrade/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/withastro/astro.git",
9+
"url": "git+https://github.com/withastro/astro.git",
1010
"directory": "packages/upgrade"
1111
},
1212
"bugs": "https://github.com/withastro/astro/issues",

0 commit comments

Comments
 (0)