diff --git a/packages/create/tests/with-deps/test.ts b/packages/create/tests/with-deps/test.ts index de8d13c22..6da9b48cd 100644 --- a/packages/create/tests/with-deps/test.ts +++ b/packages/create/tests/with-deps/test.ts @@ -3,10 +3,10 @@ import { join } from 'node:path' import { existsSync, writeFileSync } from 'node:fs' writeFileSync(join(__dirname, 'package.json'), JSON.stringify({ - "name": "with-package-json.test", - "private": true, - "dependencies": { - "@master/css": "latest" + 'name': 'with-package-json.test', + 'private': true, + 'dependencies': { + '@master/css': 'latest' } })) diff --git a/packages/create/tests/with-no-deps/test.ts b/packages/create/tests/with-no-deps/test.ts index d2ba7ed8f..4e7fa6665 100644 --- a/packages/create/tests/with-no-deps/test.ts +++ b/packages/create/tests/with-no-deps/test.ts @@ -3,11 +3,14 @@ import { join } from 'node:path' import { readFileSync, writeFileSync } from 'node:fs' writeFileSync(join(__dirname, 'package.json'), JSON.stringify({ - "name": "with-package-json.test", - "private": true + 'name': 'with-package-json.test', + 'private': true })) it('init', () => { - execSync('tsx ../../src/bin', { cwd: __dirname }) - expect(JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8')).dependencies['@master/css']).toBeDefined() -}) + // MacOS and Windows -> error https://registry.yarnpkg.com/@master/css/-/css-2.0.0-rc.21.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, chmod '/Users/runner/Library/Caches/Yarn/v6/npm-@master-css-2.0.0-rc.21-95d553b31c3370f41a9c60815841f3c359f95bcc-integrity/node_modules/@master/css/README.md'" + if (!process.env.CI || process.env.RUNNER_OS === 'Linux') { + execSync('tsx ../../src/bin', { cwd: __dirname }) + expect(JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8')).dependencies['@master/css']).toBeDefined() + } +}) \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0a458a080..ba7cb2a36 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1355,6 +1355,12 @@ importers: specifier: workspace:^ version: link:../../shared + packages/create/tests/with-no-deps: + dependencies: + '@master/css': + specifier: 2.0.0-rc.21 + version: 2.0.0-rc.21 + packages/css: dependencies: '@master/colors': @@ -8036,6 +8042,19 @@ packages: resolution: {integrity: sha512-0vbicbXvHvO7spAvEL4AMAvL+CUr6NTaufng8Oglh+ISsgtXfhkB82n3mS6kNgmwzgf8bOKMkNJRIDotjSMoqg==} dev: false + /@master/css@2.0.0-rc.21: + resolution: {integrity: sha512-zR/haUPYeJNKkKf490ha8YUxLJ5OwDuCsKtDbUlwnj82r571E5y8NmXu0MQQLrx9v3OkQ3ex8PWduaknbeWEXA==} + hasBin: true + dependencies: + '@master/colors': 2.0.0-rc.2 + '@master/normal.css': 2.0.0-rc.21 + '@techor/extend': 3.0.17 + dev: false + + /@master/normal.css@2.0.0-rc.21: + resolution: {integrity: sha512-R42STr12Chqo0BggJSZeBnL7b154+V8GYnFyrWDsfTHGTuL+9tVvdT9US64bjS2Thx5i9zd8q7j0WUiyP8dXoQ==} + dev: false + /@master/styled.react@2.0.1(@types/react@18.2.58)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-1i6TY4hRiTUrU76sDgJELGsYDsWJznn8kOIsjQoYOHvW2gdSnwQxKr944PxqKAIShg54PlngHg7XLkXn7JRwVg==} peerDependencies: