Skip to content

Commit 8ee73c2

Browse files
committed
fix: try to fix ts error #7
1 parent 7f4880e commit 8ee73c2

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@
3636
},
3737
"editor.tabSize": 2,
3838
"prettier.requireConfig": false,
39-
"prettier.singleQuote": true
39+
"prettier.singleQuote": true,
40+
"typescript.tsdk": "node_modules/typescript/lib"
4041
}

scripts/buildAdapt.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
const execa = require('./utils/exec');
2-
const path = require('path')
3-
execa(`pnpm`,['--filter', `./packages/**`, 'build'], {
4-
cwd: path.resolve(__dirname, `../`),s
5-
stdio: 'inherit',
6-
})
2+
const os = require('os');
3+
4+
const path = require('path');
5+
execa(
6+
`pnpm`,
7+
[
8+
'--filter',
9+
os.type() === 'Darwin' ? `'./packages/**'` : `./packages/**`,
10+
'build',
11+
],
12+
{
13+
cwd: path.resolve(__dirname, `../`),
14+
stdio: 'inherit',
15+
},
16+
);

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"scripts"
1111
],
1212
"compilerOptions": {
13+
"baseUrl": ".",
1314
"jsx": "react-jsx",
1415
"types": ["unplugin-icons/types/react"]
1516
}

0 commit comments

Comments
 (0)