Skip to content

Commit 07e2690

Browse files
authored
chore: try netlify build (#321)
1 parent 042bfda commit 07e2690

File tree

7 files changed

+24
-23
lines changed

7 files changed

+24
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"build": "pnpm -r --filter=!@typescript/api --filter=!@typescript/ast --filter='@rslint/test-tools...' --filter='rslint...' build",
1717
"build:npm": "zx scripts/build-npm.mjs",
18-
"build:website": "pnpm -F @rslint/website... -r build",
18+
"build:website": "./scripts/apply-tsgo-path.sh && pnpm --filter=!@typescript/api --filter=!@typescript/ast --filter=!@rslint/core --filter @rslint/website... -r build",
1919
"check-spell": "pnpx cspell",
2020
"version": "zx scripts/version.mjs",
2121
"release": "pnpm publish -r --no-git-checks",

packages/rslint-wasm/scripts/build.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ async function buildWorker() {
1818
write: true,
1919
format: 'iife',
2020
sourcemap: 'inline',
21+
conditions: ['@typescript/source'],
2122
plugins: [polyfillNode()],
2223
});
2324
}
@@ -34,6 +35,7 @@ async function buildBrowser() {
3435
target: 'es2020',
3536
format: 'esm',
3637
splitting: false,
38+
conditions: ['@typescript/source'],
3739
define: {
3840
WEB_WORKER_SOURCE_CODE: JSON.stringify(WEB_WORKER_SOURCE_CODE),
3941
},

packages/rslint-wasm/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": ["../../tsconfig.build.json"],
33
"compilerOptions": {
44
"lib": ["DOM", "ESNext"],
5-
"emitDeclarationOnly": true
5+
"emitDeclarationOnly": true,
6+
"customConditions": ["@typescript/source"]
67
},
78
"references": []
89
}

packages/rslint-wasm/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "../../tsconfig.base.json",
3+
34
"references": [
45
{
56
"path": "./tsconfig.build.json"

packages/rslint/package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@
22
"name": "@rslint/core",
33
"version": "0.1.12",
44
"exports": {
5-
".": "./dist/index.js",
6-
"./browser": "./dist/browser.js",
7-
"./service": "./dist/service.js",
5+
".": {
6+
"@typescript/source": "./src/index.ts",
7+
"default": "./dist/index.js"
8+
},
9+
"./browser": {
10+
"@typescript/source": "./src/browser.ts",
11+
"default": "./dist/browser.js"
12+
},
13+
"./service": {
14+
"@typescript/source": "./src/service.ts",
15+
"default": "./dist/service.js"
16+
},
817
"./bin": "./bin/rslint.cjs",
918
"./package.json": "./package.json"
1019
},

pnpm-lock.yaml

Lines changed: 4 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"tw-animate-css": "^1.3.6"
2424
},
2525
"devDependencies": {
26-
"@rslint/wasm": "0.1.12",
27-
"@rslint/api": "0.1.12",
26+
"@rslint/wasm": "workspace:*",
27+
"@rslint/api": "workspace:*",
2828
"@rsbuild/plugin-sass": "^1.3.5",
2929
"@rspress/core": "2.0.0-beta.27",
3030
"@rspress/plugin-llms": "2.0.0-beta.27",

0 commit comments

Comments
 (0)