Skip to content

Commit

Permalink
Update package.json and pnpm-lock.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Mar 1, 2024
1 parent b0d8b73 commit de2289d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
8 changes: 4 additions & 4 deletions packages/create/tests/with-deps/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}))

Expand Down
13 changes: 8 additions & 5 deletions packages/create/tests/with-no-deps/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
})
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit de2289d

Please sign in to comment.