diff --git a/.gitignore b/.gitignore index 77b7d9ed..d0ce544f 100644 --- a/.gitignore +++ b/.gitignore @@ -41,10 +41,4 @@ dist/ .mfsu .dumi -# -**/config/typescript/tsconfig.json -**/config/eslint/index.js - -pnpm-lock.yaml - publish \ No newline at end of file diff --git a/examples/mp-base/package.json b/examples/mp-base/package.json index 46eb293a..b29f9452 100644 --- a/examples/mp-base/package.json +++ b/examples/mp-base/package.json @@ -1,8 +1,9 @@ { - "name": "esboot-react-mp", + "name": "example-mp-base", "version": "1.0.0", "testVersion": 1, "description": "", + "private": true, "main": "index.js", "scripts": { "esboot": "esboot", diff --git a/examples/sp-base/package.json b/examples/sp-base/package.json index 5d0cde92..e28ce398 100644 --- a/examples/sp-base/package.json +++ b/examples/sp-base/package.json @@ -1,5 +1,5 @@ { - "name": "sp-bundler-vite", + "name": "example-sp-base", "version": "1.0.0", "testVersion": 1, "description": "", diff --git a/lerna-debug.log b/lerna-debug.log new file mode 100644 index 00000000..4b8a9171 --- /dev/null +++ b/lerna-debug.log @@ -0,0 +1,11 @@ +70 error Error: Command failed with exit code 1: git add -- packages/eslint-plugin-esboot/package.json packages/common/package.json packages/lint/package.json packages/esboot/package.json packages/bundler-common/package.json packages/bundler-rspack/package.json packages/bundler-vite/package.json packages/bundler-webpack/package.json lerna.json pnpm-lock.yaml +70 error The following paths are ignored by one of your .gitignore files: +70 error pnpm-lock.yaml +70 error hint: Use -f if you really want to add them. +70 error hint: Turn this message off by running +70 error hint: "git config advice.addIgnoredFile false" +70 error at makeError (/Users/rocsun/Code/dz-library/esboot/]esboot-next/node_modules/.pnpm/execa@5.0.0/node_modules/execa/lib/error.js:59:11) +70 error at handlePromise (/Users/rocsun/Code/dz-library/esboot/]esboot-next/node_modules/.pnpm/execa@5.0.0/node_modules/execa/index.js:114:26) +70 error at process.processTicksAndRejections (node:internal/process/task_queues:95:5) +70 error at async VersionCommand.updatePackageVersions (/Users/rocsun/Code/dz-library/esboot/]esboot-next/node_modules/.pnpm/lerna@8.1.7_encoding@0.1.13/node_modules/lerna/dist/index.js:9883:11) +70 error at async Promise.all (index 0) diff --git a/packages/lint/src/index.ts b/packages/lint/src/index.ts index 1aa7e331..da764f7f 100644 --- a/packages/lint/src/index.ts +++ b/packages/lint/src/index.ts @@ -5,17 +5,17 @@ const importExeca = import('execa'); export async function lint(args: string[] = []) { const { execa, ExecaError } = await importExeca; - await execa( - require.resolve('stylelint/bin/stylelint'), - ['**/*.scss', ...args], - { - stdio: 'inherit', - shell: true, - } - ); - try { - await execa( + execa( + require.resolve('stylelint/bin/stylelint'), + ['**/*.scss', ...args], + { + stdio: 'inherit', + shell: true, + } + ); + + execa( // Special case for eslint 'eslint', ['--ext', '.jsx,.js,.ts,.tsx', resolve(process.cwd(), 'src/'), ...args],