- const typesPath = resolve(cwd(), './packages/types/')
- const typesDistPath = resolve(cwd(), typesPath, './dist/')
- const typesDistPackageJsonPath = resolve(typesDistPath, './package.json')
- const typesDistGitIgnorePath = resolve(typesDistPath, './.gitignore')
- const mainPackageJson = await readJson(resolve(cwd(), './package.json'))
- const distTsConfigPath = resolve(cwd(), typesPath, './tsconfig.dist.json')
+ const typesPath = __dirname
+ const typesDistPath = join(typesPath, 'dist')
+ const typesDistPackageJsonPath = join(typesDistPath, 'package.json')
+ const typesDistGitIgnorePath = join(typesDistPath, '.gitignore')
+ const mainPackageJson = await readJson(join(root(), 'package.json'))
+ const distTsConfigPath = join(typesPath, 'tsconfig.dist.json')