Skip to content

Commit

Permalink
fix: try to fix ts error #7
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryqwq committed Apr 24, 2023
1 parent 7f4880e commit 8ee73c2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@
},
"editor.tabSize": 2,
"prettier.requireConfig": false,
"prettier.singleQuote": true
"prettier.singleQuote": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
20 changes: 15 additions & 5 deletions scripts/buildAdapt.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
const execa = require('./utils/exec');
const path = require('path')
execa(`pnpm`,['--filter', `./packages/**`, 'build'], {
cwd: path.resolve(__dirname, `../`),s
stdio: 'inherit',
})
const os = require('os');

const path = require('path');
execa(
`pnpm`,
[
'--filter',
os.type() === 'Darwin' ? `'./packages/**'` : `./packages/**`,
'build',
],
{
cwd: path.resolve(__dirname, `../`),
stdio: 'inherit',
},
);
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts"
],
"compilerOptions": {
"baseUrl": ".",
"jsx": "react-jsx",
"types": ["unplugin-icons/types/react"]
}
Expand Down

0 comments on commit 8ee73c2

Please sign in to comment.