This repository has no description
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758import fs from 'node:fs'import path from 'node:path'
// Where are we?const packageDirPath = process.cwd()
// package.jsonconst packageJsonPath = path.join(packageDirPath, 'package.json')const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'))
// rewrite package.json te be in the right order!fs.writeFileSync( packageJsonPath, JSON.stringify( { name: pkg.name, description: pkg.description ?? 'Missing!!!', keywords: pkg.keywords ?? ['Missing!!!'], version: pkg.version, license: 'MIT', funding: pkg.funding ?? 'https://github.com/sponsors/jycouet', homepage: pkg.homepage ?? 'https://www.kitql.dev/', type: 'module', repository: { type: 'git', url: pkg.repository?.url ?? 'https://github.com/jycouet/kitql', directory: pkg.repository?.directory ?? 'packages/' + pkg.name, homepage: pkg.repository?.homepage ?? 'https://github.com/jycouet/kitql/tree/main/packages/???', }, scripts: pkg.scripts, peerDependencies: pkg.peerDependencies, devDependencies: pkg.devDependencies, dependencies: pkg.dependencies, sideEffects: pkg.sideEffects ?? false, // Key for tree shaking! publishConfig: { directory: 'dist', access: 'public', }, files: ['dist', '!dist/**/*.test.*', '!dist/**/*.spec.*'], svelte: './esm/index.js', types: './esm/index.d.ts', exports: { '.': { types: './esm/index.d.ts', require: './cjs/index.js', svelte: './esm/index.js', default: './esm/index.js', }, }, engines: { node: pkg?.engines?.node ?? '>=18', // let's have the same default as SvelteKit }, }, null, 2, ),)