one-way-git-sync 4.1.1 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.min.cjs +4 -4
- package/dist/cli.min.cjs.map +2 -2
- package/package.json +19 -19
package/dist/cli.min.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var U=Object.create;var w=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var W=(t,e)=>{for(var r in e)w(t,r,{get:e[r],enumerable:!0})},S=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of D(e))!B.call(t,a)&&a!==r&&w(t,a,{get:()=>e[a],enumerable:!(o=_(e,a))||o.enumerable});return t};var m=(t,e,r)=>(r=t!=null?U(q(t)):{},S(e||!t||!t.__esModule?w(r,"default",{value:t,enumerable:!0}):r,t)),z=t=>S(w({},"__esModule",{value:!0}),t);var K={};W(K,{cli:()=>J});module.exports=z(K);var A=require("yargs/helpers"),H=m(require("yargs/yargs"));var d=require("winston"),i=(0,d.createLogger)({transports:[new d.transports.Console({format:d.format.cli({colors:{error:"red"}})})]});var T=m(require("child_process")),f=m(require("fs/promises")),h=m(require("path")),E=m(require("fs-extra")),$=m(require("micromatch")),g=m(require("simple-git"));async function F(t){var a,u,c;let r=(await t.getRemotes(!0)).find(n=>n.name==="origin"),o=((a=r==null?void 0:r.refs)==null?void 0:a.fetch)??((u=r==null?void 0:r.refs)==null?void 0:u.push);if(typeof o=="string"&&o.includes("github.com")){let n=o.split("/"),l=n[n.length-2],p=(c=n[n.length-1])==null?void 0:c.replace(/.git$/,"");if(l&&p)return`https://github.com/${l}/${p}/commits`}}var G=h.default.join("node_modules",".temp","sync-git-repo");async function L(t){await f.default.mkdir(G,{recursive:!0});let e=await f.default.mkdtemp(h.default.join(G,"repo-")),r=await P(e,t);process.exit(r?0:1)}async function P(t,e){var O;let r={"--single-branch":void 0};e.force||(r["--depth"]=1),e.branch&&(r["--branch"]=e.branch);try{await(0,g.default)().clone(e.dest,t,r)}catch{delete r["--branch"],delete r["--single-branch"],await(0,g.default)().clone(e.dest,t,r),(0,g.default)(t).checkout(["-b",e.branch])}i.verbose(`Cloned destination repo on ${t}`);let o=(0,g.default)(t),a=await o.log(),[u,c]=Y(a);if(c)i.verbose(`Extracted a valid commit: ${c}`),i.verbose(`(${u})`);else if(!e.force)return i.error("No valid commit in destination repo"),!1;let n=(0,g.default)(),l;try{l=await n.log(c?{from:c,to:"HEAD","--first-parent":void 0}:void 0)}catch(s){return i.error(`Failed to get source commit history: ${s.stack}`),!1}let p=(O=l.latest)==null?void 0:O.hash;if(!p)return i.info("No synchronizable commit"),!0;let[I,N]=await Promise.all([f.default.readdir(t),f.default.readdir(".")]);for(let s of $.default.not(I,e["ignore-patterns"]))await f.default.rm(h.default.join(t,s),{recursive:!0,force:!0});for(let s of $.default.not(N,e["ignore-patterns"]))E.default.copySync(s,h.default.join(t,s));await o.add("-A");let y="";if(e["tag-hash"]||e["tag-version"]){let s=`git describe --tags --always ${e["tag-version"]?"--abbrev=0":""}`;y=T.default.execSync(s).toString().trim()}let b=e.prefix??await F(n)??"";b&&!b.endsWith("/")&&(b+="/");let x=`${b}${p}`,k=y?`sync ${y} (${x})`:`sync ${x}`,C=c?l.all.map(s=>`* ${s.message}`).join(`
|
|
2
2
|
|
|
3
|
-
`):`Replace all the files with those of ${e.dest} due to missing sync commit.`;try{await
|
|
3
|
+
`):`Replace all the files with those of ${e.dest} due to missing sync commit.`;try{await o.commit(`${k}
|
|
4
4
|
|
|
5
|
-
${C}`),
|
|
5
|
+
${C}`),i.verbose(`Created a commit: ${k}`),i.verbose(` with body: ${C}`)}catch(s){return i.error(`Failed to commit changes: ${s.stack}\`);`),!1}let v=y||e.tag;if(v)try{await o.addTag(v),i.verbose(`Created a tag: ${v}`)}catch(s){return i.error(`Failed to commit changes: ${s.stack}\`);`),!1}if(e.dry)return i.verbose("Finished dry run"),!0;try{e.branch?await o.push("origin",e.branch):await o.push(),v&&await o.push({"--tags":null})}catch(s){return i.error(`Failed to push the commit: ${s.stack}`),!1}return i.verbose("Pushed the commit"),!0}function Y(t){if(t.all.length===0)return i.verbose("No commit history"),[];for(let e of t.all){let[r,...o]=e.message.replace(/[()]/g,"").split(/[\s/]/);if(r==="sync"&&o.length)return[e.message,o[o.length-1]]}return i.verbose(`No sync commit: ${t.all[0].message}`),[]}var j={dest:{type:"string",alias:"d",describe:"A URL of a destination git repository.",demand:!0},prefix:{type:"string",alias:"p",describe:`A prefix of a commit hash used to generate a commit title, e.g. 'sync <prefix>/<hash>'.
|
|
6
6
|
A typical value is like 'https://github.com/WillBooster/one-way-git-sync/commits'`},branch:{type:"string",alias:"b",describe:"Specify branch of destination repo."},tag:{type:"string",alias:"t",describe:"Specify tag to be created in destination repo."},"tag-hash":{type:"boolean",describe:"Create version+hash tag (e.g. v1.31.5-2-gcdde507). It should be a unique tag."},"tag-version":{type:"boolean",describe:"Create version tag (e.g. v1.31.5). It could be a non-unique tag."},"ignore-patterns":{type:"string",alias:"i",describe:`Exclude the files whose path matches one of the given patterns.
|
|
7
7
|
The patterns are processed by micromatch (https://github.com/micromatch/micromatch).
|
|
8
|
-
You may specify the option multiple times. Default value is
|
|
8
|
+
You may specify the option multiple times. Default value is "-i .git -i .github -i node_modules -i '.renovaterc.*'"`,default:[".git",".github","node_modules",".renovaterc.*"]},dry:{type:"boolean",describe:"Enable dry-run mode."},force:{type:"boolean",describe:"Force to overwrite the destination git repository."},verbose:{type:"boolean",alias:"v",describe:"Show details logs."}};async function J(t){let e=await(0,H.default)((0,A.hideBin)(t)).options(j).middleware(r=>{i.level=r.verbose?"verbose":"info"}).argv;await L(e)}0&&(module.exports={cli});
|
|
9
9
|
//# sourceMappingURL=cli.min.cjs.map
|
package/dist/cli.min.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/cli.ts", "../src/logger.ts", "../src/sync.ts", "../src/gitHub.ts", "../src/yargsOptions.ts"],
|
|
4
|
-
"sourcesContent": ["import { hideBin } from 'yargs/helpers';\nimport yargs from 'yargs/yargs';\n\nimport { logger } from './logger';\nimport { sync } from './sync';\nimport { yargsOptions } from './yargsOptions';\n\nexport async function cli(args: string[]): Promise<void> {\n const argv = await yargs(hideBin(args))\n .options(yargsOptions)\n .middleware((argv) => {\n logger.level = argv.verbose ? 'verbose' : 'info';\n }).argv;\n await sync(argv);\n}\n", "import { createLogger, format, transports } from 'winston';\n\nexport const logger = createLogger({\n transports: [\n new transports.Console({\n format: format.cli({ colors: { error: 'red' } }),\n }),\n ],\n});\n", "import child_process from 'child_process';\nimport fsp from 'fs/promises';\nimport path from 'path';\n\nimport fse from 'fs-extra';\nimport micromatch from 'micromatch';\nimport type { LogResult, TaskOptions } from 'simple-git';\nimport simpleGit, { SimpleGit } from 'simple-git';\nimport { InferredOptionTypes } from 'yargs';\n\nimport { getGitHubCommitsUrl } from './gitHub';\nimport { logger } from './logger';\nimport { yargsOptions } from './yargsOptions';\n\nconst syncDirPath = path.join('node_modules', '.temp', 'sync-git-repo');\n\nexport async function sync(opts: InferredOptionTypes<typeof yargsOptions>): Promise<void> {\n await fsp.mkdir(syncDirPath, { recursive: true });\n const dirPath = await fsp.mkdtemp(path.join(syncDirPath, 'repo-'));\n const ret = await syncCore(dirPath, opts);\n // await fsp.rm(dirPath, { recursive: true, force: true });\n process.exit(ret ? 0 : 1);\n}\n\nasync function syncCore(destRepoPath: string, opts: InferredOptionTypes<typeof yargsOptions>): Promise<boolean> {\n const cloneOpts: Record<string, any> = { '--single-branch': undefined };\n if (!opts.force) {\n cloneOpts['--depth'] = 1;\n }\n if (opts.branch) {\n cloneOpts['--branch'] = opts.branch;\n }\n try {\n await simpleGit().clone(opts.dest, destRepoPath, cloneOpts);\n } catch (e) {\n delete cloneOpts['--single-branch'];\n await simpleGit().clone(opts.dest, destRepoPath, cloneOpts);\n simpleGit(destRepoPath).checkout(['-b', opts.branch] as TaskOptions);\n }\n logger.verbose(`Cloned destination repo on ${destRepoPath}`);\n\n const dstGit: SimpleGit = simpleGit(destRepoPath);\n const dstLog = await dstGit.log();\n\n const [head, from] = extractCommitHash(dstLog);\n if (from) {\n logger.verbose(`Extracted a valid commit: ${from}`);\n logger.verbose(`(${head})`);\n } else if (!opts.force) {\n logger.error('No valid commit in destination repo');\n return false;\n }\n\n const srcGit: SimpleGit = simpleGit();\n let srcLog: LogResult;\n try {\n // '--first-parent' hides children commits of merge commits\n srcLog = await srcGit.log(from ? { from, to: 'HEAD', '--first-parent': undefined } : undefined);\n } catch (e) {\n logger.error(`Failed to get source commit history: ${(e as Error).stack}`);\n return false;\n }\n\n const latestHash = srcLog.latest?.hash;\n if (!latestHash) {\n logger.info('No synchronizable commit');\n return true;\n }\n\n const [destFiles, srcFiles] = await Promise.all([fsp.readdir(destRepoPath), fsp.readdir('.')]);\n for (const destFile of micromatch.not(destFiles, opts['ignore-patterns'])) {\n await fsp.rm(path.join(destRepoPath, destFile), { recursive: true, force: true });\n }\n for (const srcFile of micromatch.not(srcFiles, opts['ignore-patterns'])) {\n fse.copySync(srcFile, path.join(destRepoPath, srcFile));\n }\n await dstGit.add('-A');\n\n let srcTag = '';\n if (opts['tag-hash'] || opts['tag-version']) {\n // e.g. `--abbrev=0` changes `v1.31.5-2-gcdde507` to `v1.31.5`\n const describeCommand = `git describe --tags --always ${opts['tag-version'] ? '--abbrev=0' : ''}`;\n srcTag = child_process.execSync(describeCommand).toString().trim();\n }\n let prefix = opts.prefix ?? (await getGitHubCommitsUrl(srcGit)) ?? '';\n if (prefix && !prefix.endsWith('/')) {\n prefix += '/';\n }\n const link = `${prefix}${latestHash}`;\n const title = srcTag ? `sync ${srcTag} (${link})` : `sync ${link}`;\n const body = from\n ? srcLog.all.map((l) => `* ${l.message}`).join('\\n\\n')\n : `Replace all the files with those of ${opts.dest} due to missing sync commit.`;\n try {\n await dstGit.commit(`${title}\\n\\n${body}`);\n logger.verbose(`Created a commit: ${title}`);\n logger.verbose(` with body: ${body}`);\n } catch (e) {\n logger.error(`Failed to commit changes: ${(e as Error).stack}\\`);`);\n return false;\n }\n\n const destTag = srcTag || opts.tag;\n if (destTag) {\n try {\n await dstGit.addTag(destTag);\n logger.verbose(`Created a tag: ${destTag}`);\n } catch (e) {\n logger.error(`Failed to commit changes: ${(e as Error).stack}\\`);`);\n return false;\n }\n }\n\n if (opts.dry) {\n logger.verbose('Finished dry run');\n return true;\n }\n\n try {\n await dstGit.push();\n if (destTag) {\n await dstGit.push({ '--tags': null });\n }\n } catch (e) {\n logger.error(`Failed to push the commit: ${(e as Error).stack}`);\n return false;\n }\n\n logger.verbose('Pushed the commit');\n return true;\n}\n\nfunction extractCommitHash(logResult: LogResult): [string, string] | [] {\n if (logResult.all.length === 0) {\n logger.verbose('No commit history');\n return [];\n }\n\n for (const log of logResult.all) {\n const [head, ...words] = log.message.replace(/[()]/g, '').split(/[\\s/]/);\n if (head === 'sync' && words.length) {\n return [log.message, words[words.length - 1]];\n }\n }\n logger.verbose(`No sync commit: ${logResult.all[0].message}`);\n return [];\n}\n", "import { SimpleGit } from 'simple-git';\n\nexport async function getGitHubCommitsUrl(git: SimpleGit): Promise<string | undefined> {\n const remotes = await git.getRemotes(true);\n const origin = remotes.find((r) => r.name === 'origin');\n const remoteUrl = origin?.refs?.fetch ?? origin?.refs?.push;\n if (typeof remoteUrl === 'string' && remoteUrl.includes('github.com')) {\n const words = remoteUrl.split('/');\n const org = words[words.length - 2];\n const name = words[words.length - 1]?.replace(/.git$/, '');\n if (org && name) return `https://github.com/${org}/${name}/commits`;\n }\n}\n", "export const yargsOptions = {\n dest: {\n type: 'string',\n alias: 'd',\n describe: 'A URL of a destination git repository.',\n demand: true,\n },\n prefix: {\n type: 'string',\n alias: 'p',\n describe: `A prefix of a commit hash used to generate a commit title, e.g. 'sync <prefix>/<hash>'.\n A typical value is like 'https://github.com/WillBooster/one-way-git-sync/commits'`,\n },\n branch: {\n type: 'string',\n alias: 'b',\n describe: 'Specify branch of destination repo.',\n },\n tag: {\n type: 'string',\n alias: 't',\n describe: 'Specify tag to be created in destination repo.',\n },\n 'tag-hash': {\n type: 'boolean',\n describe: 'Create version+hash tag (e.g. v1.31.5-2-gcdde507). It should be a unique tag.',\n },\n 'tag-version': {\n type: 'boolean',\n describe: 'Create version tag (e.g. v1.31.5). It could be a non-unique tag.',\n },\n 'ignore-patterns': {\n type: 'string',\n alias: 'i',\n describe: `Exclude the files whose path matches one of the given patterns.\n The patterns are processed by micromatch (https://github.com/micromatch/micromatch).\n You may specify the option multiple times. Default value is
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { hideBin } from 'yargs/helpers';\nimport yargs from 'yargs/yargs';\n\nimport { logger } from './logger';\nimport { sync } from './sync';\nimport { yargsOptions } from './yargsOptions';\n\nexport async function cli(args: string[]): Promise<void> {\n const argv = await yargs(hideBin(args))\n .options(yargsOptions)\n .middleware((argv) => {\n logger.level = argv.verbose ? 'verbose' : 'info';\n }).argv;\n await sync(argv);\n}\n", "import { createLogger, format, transports } from 'winston';\n\nexport const logger = createLogger({\n transports: [\n new transports.Console({\n format: format.cli({ colors: { error: 'red' } }),\n }),\n ],\n});\n", "import child_process from 'child_process';\nimport fsp from 'fs/promises';\nimport path from 'path';\n\nimport fse from 'fs-extra';\nimport micromatch from 'micromatch';\nimport type { LogResult, TaskOptions } from 'simple-git';\nimport simpleGit, { SimpleGit } from 'simple-git';\nimport { InferredOptionTypes } from 'yargs';\n\nimport { getGitHubCommitsUrl } from './gitHub';\nimport { logger } from './logger';\nimport { yargsOptions } from './yargsOptions';\n\nconst syncDirPath = path.join('node_modules', '.temp', 'sync-git-repo');\n\nexport async function sync(opts: InferredOptionTypes<typeof yargsOptions>): Promise<void> {\n await fsp.mkdir(syncDirPath, { recursive: true });\n const dirPath = await fsp.mkdtemp(path.join(syncDirPath, 'repo-'));\n const ret = await syncCore(dirPath, opts);\n // await fsp.rm(dirPath, { recursive: true, force: true });\n process.exit(ret ? 0 : 1);\n}\n\nasync function syncCore(destRepoPath: string, opts: InferredOptionTypes<typeof yargsOptions>): Promise<boolean> {\n const cloneOpts: Record<string, any> = { '--single-branch': undefined };\n if (!opts.force) {\n cloneOpts['--depth'] = 1;\n }\n if (opts.branch) {\n cloneOpts['--branch'] = opts.branch;\n }\n try {\n await simpleGit().clone(opts.dest, destRepoPath, cloneOpts);\n } catch (e) {\n delete cloneOpts['--branch'];\n delete cloneOpts['--single-branch'];\n await simpleGit().clone(opts.dest, destRepoPath, cloneOpts);\n simpleGit(destRepoPath).checkout(['-b', opts.branch] as TaskOptions);\n }\n logger.verbose(`Cloned destination repo on ${destRepoPath}`);\n\n const dstGit: SimpleGit = simpleGit(destRepoPath);\n const dstLog = await dstGit.log();\n\n const [head, from] = extractCommitHash(dstLog);\n if (from) {\n logger.verbose(`Extracted a valid commit: ${from}`);\n logger.verbose(`(${head})`);\n } else if (!opts.force) {\n logger.error('No valid commit in destination repo');\n return false;\n }\n\n const srcGit: SimpleGit = simpleGit();\n let srcLog: LogResult;\n try {\n // '--first-parent' hides children commits of merge commits\n srcLog = await srcGit.log(from ? { from, to: 'HEAD', '--first-parent': undefined } : undefined);\n } catch (e) {\n logger.error(`Failed to get source commit history: ${(e as Error).stack}`);\n return false;\n }\n\n const latestHash = srcLog.latest?.hash;\n if (!latestHash) {\n logger.info('No synchronizable commit');\n return true;\n }\n\n const [destFiles, srcFiles] = await Promise.all([fsp.readdir(destRepoPath), fsp.readdir('.')]);\n for (const destFile of micromatch.not(destFiles, opts['ignore-patterns'])) {\n await fsp.rm(path.join(destRepoPath, destFile), { recursive: true, force: true });\n }\n for (const srcFile of micromatch.not(srcFiles, opts['ignore-patterns'])) {\n fse.copySync(srcFile, path.join(destRepoPath, srcFile));\n }\n await dstGit.add('-A');\n\n let srcTag = '';\n if (opts['tag-hash'] || opts['tag-version']) {\n // e.g. `--abbrev=0` changes `v1.31.5-2-gcdde507` to `v1.31.5`\n const describeCommand = `git describe --tags --always ${opts['tag-version'] ? '--abbrev=0' : ''}`;\n srcTag = child_process.execSync(describeCommand).toString().trim();\n }\n let prefix = opts.prefix ?? (await getGitHubCommitsUrl(srcGit)) ?? '';\n if (prefix && !prefix.endsWith('/')) {\n prefix += '/';\n }\n const link = `${prefix}${latestHash}`;\n const title = srcTag ? `sync ${srcTag} (${link})` : `sync ${link}`;\n const body = from\n ? srcLog.all.map((l) => `* ${l.message}`).join('\\n\\n')\n : `Replace all the files with those of ${opts.dest} due to missing sync commit.`;\n try {\n await dstGit.commit(`${title}\\n\\n${body}`);\n logger.verbose(`Created a commit: ${title}`);\n logger.verbose(` with body: ${body}`);\n } catch (e) {\n logger.error(`Failed to commit changes: ${(e as Error).stack}\\`);`);\n return false;\n }\n\n const destTag = srcTag || opts.tag;\n if (destTag) {\n try {\n await dstGit.addTag(destTag);\n logger.verbose(`Created a tag: ${destTag}`);\n } catch (e) {\n logger.error(`Failed to commit changes: ${(e as Error).stack}\\`);`);\n return false;\n }\n }\n\n if (opts.dry) {\n logger.verbose('Finished dry run');\n return true;\n }\n\n try {\n if (opts.branch) {\n await dstGit.push('origin', opts.branch);\n } else {\n await dstGit.push();\n }\n if (destTag) {\n await dstGit.push({ '--tags': null });\n }\n } catch (e) {\n logger.error(`Failed to push the commit: ${(e as Error).stack}`);\n return false;\n }\n\n logger.verbose('Pushed the commit');\n return true;\n}\n\nfunction extractCommitHash(logResult: LogResult): [string, string] | [] {\n if (logResult.all.length === 0) {\n logger.verbose('No commit history');\n return [];\n }\n\n for (const log of logResult.all) {\n const [head, ...words] = log.message.replace(/[()]/g, '').split(/[\\s/]/);\n if (head === 'sync' && words.length) {\n return [log.message, words[words.length - 1]];\n }\n }\n logger.verbose(`No sync commit: ${logResult.all[0].message}`);\n return [];\n}\n", "import { SimpleGit } from 'simple-git';\n\nexport async function getGitHubCommitsUrl(git: SimpleGit): Promise<string | undefined> {\n const remotes = await git.getRemotes(true);\n const origin = remotes.find((r) => r.name === 'origin');\n const remoteUrl = origin?.refs?.fetch ?? origin?.refs?.push;\n if (typeof remoteUrl === 'string' && remoteUrl.includes('github.com')) {\n const words = remoteUrl.split('/');\n const org = words[words.length - 2];\n const name = words[words.length - 1]?.replace(/.git$/, '');\n if (org && name) return `https://github.com/${org}/${name}/commits`;\n }\n}\n", "export const yargsOptions = {\n dest: {\n type: 'string',\n alias: 'd',\n describe: 'A URL of a destination git repository.',\n demand: true,\n },\n prefix: {\n type: 'string',\n alias: 'p',\n describe: `A prefix of a commit hash used to generate a commit title, e.g. 'sync <prefix>/<hash>'.\n A typical value is like 'https://github.com/WillBooster/one-way-git-sync/commits'`,\n },\n branch: {\n type: 'string',\n alias: 'b',\n describe: 'Specify branch of destination repo.',\n },\n tag: {\n type: 'string',\n alias: 't',\n describe: 'Specify tag to be created in destination repo.',\n },\n 'tag-hash': {\n type: 'boolean',\n describe: 'Create version+hash tag (e.g. v1.31.5-2-gcdde507). It should be a unique tag.',\n },\n 'tag-version': {\n type: 'boolean',\n describe: 'Create version tag (e.g. v1.31.5). It could be a non-unique tag.',\n },\n 'ignore-patterns': {\n type: 'string',\n alias: 'i',\n describe: `Exclude the files whose path matches one of the given patterns.\n The patterns are processed by micromatch (https://github.com/micromatch/micromatch).\n You may specify the option multiple times. Default value is \"-i .git -i .github -i node_modules -i '.renovaterc.*'\"`,\n default: ['.git', '.github', 'node_modules', '.renovaterc.*'],\n },\n dry: {\n type: 'boolean',\n describe: 'Enable dry-run mode.',\n },\n force: {\n type: 'boolean',\n describe: 'Force to overwrite the destination git repository.',\n },\n verbose: {\n type: 'boolean',\n alias: 'v',\n describe: 'Show details logs.',\n },\n} as const;\n"],
|
|
5
|
+
"mappings": "6iBAAA,oDAAwB,yBACxB,EAAkB,0BCDlB,MAAiD,mBAEpC,EAAS,mBAAa,CACjC,WAAY,CACV,GAAI,cAAW,QAAQ,CACrB,OAA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S,EACrD,CAAC,CACV,CEvJO,GAAM,GAAe,CAC1B,KAAM,CACJ,KAAM,SACN,MAAO,IACP,SAAU,yCACV,OAAQ,EACV,EACA,OAAQ,CACN,KAAM,SACN,MAAO,IACP,SAAU;AAAA,iGAEZ,EACA,OAAQ,CACN,KAAM,SACN,MAAO,IACP,SAAU,qCACZ,EACA,IAAK,CACH,KAAM,SACN,MAAO,IACP,SAAU,gDACZ,EACA,WAAY,CACV,KAAM,UACN,SAAU,+EACZ,EACA,cAAe,CACb,KAAM,UACN,SAAU,kEACZ,EACA,kBAAmB,CACjB,KAAM,SACN,MAAO,IACP,SAAU;AAAA;AAAA,oIAGV,QAAS,CAAC,OAAQ,UAAW,eAAgB,eAAe,CAC9D,EACA,IAAK,CACH,KAAM,UACN,SAAU,sBACZ,EACA,MAAO,CACL,KAAM,UACN,SAAU,oDACZ,EACA,QAAS,CACP,KAAM,UACN,MAAO,IACP,SAAU,oBACZ,CACF,EJ7CA,iBAA0B,EAA+B,CACvD,GAAM,GAAO,KAAM,cAAM,cAAQ,CAAI,CAAC,EACnC,QAAQ,CAAY,EACpB,WAAW,AAAC,GAAS,CACpB,EAAO,MAAQ,EAAK,QAAU,UAAY,MAC5C,CAAC,EAAE,KACL,KAAM,GAAK,CAAI,CACjB",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"cleanup": "yarn format && yarn lint-fix",
|
|
19
19
|
"format": "sort-package-json && yarn prettify",
|
|
20
20
|
"_postinstall": "husky install",
|
|
21
|
-
"lint": "eslint --color \"./{src,__tests__}/**/*.{cjs,js,jsx,mjs,ts,tsx}\"",
|
|
21
|
+
"lint": "eslint --color \"./{src,__tests__,scripts}/**/*.{cjs,js,jsx,mjs,ts,tsx}\"",
|
|
22
22
|
"lint-fix": "yarn lint --fix",
|
|
23
23
|
"prepack": "pinst --disable",
|
|
24
24
|
"postpack": "pinst --enable",
|
|
@@ -33,43 +33,43 @@
|
|
|
33
33
|
"npm/chalk": "^4.1.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"fs-extra": "10.0
|
|
37
|
-
"micromatch": "4.0.
|
|
38
|
-
"simple-git": "3.
|
|
39
|
-
"winston": "3.
|
|
40
|
-
"yargs": "17.
|
|
36
|
+
"fs-extra": "10.1.0",
|
|
37
|
+
"micromatch": "4.0.5",
|
|
38
|
+
"simple-git": "3.7.1",
|
|
39
|
+
"winston": "3.7.2",
|
|
40
|
+
"yargs": "17.4.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/eslint": "8.4.1",
|
|
44
44
|
"@types/fs-extra": "9.0.13",
|
|
45
45
|
"@types/micromatch": "4.0.2",
|
|
46
46
|
"@types/semantic-release": "17.2.3",
|
|
47
|
-
"@types/yargs": "17.0.
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
49
|
-
"@typescript-eslint/parser": "5.
|
|
47
|
+
"@types/yargs": "17.0.10",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "5.21.0",
|
|
49
|
+
"@typescript-eslint/parser": "5.21.0",
|
|
50
50
|
"@willbooster/eslint-config-ts": "9.0.0",
|
|
51
51
|
"@willbooster/prettier-config": "9.0.0",
|
|
52
52
|
"@willbooster/renovate-config": "9.2.0",
|
|
53
53
|
"conventional-changelog-conventionalcommits": "4.6.3",
|
|
54
|
-
"esbuild": "0.14.
|
|
54
|
+
"esbuild": "0.14.38",
|
|
55
55
|
"esbuild-register": "3.3.2",
|
|
56
|
-
"eslint": "8.
|
|
56
|
+
"eslint": "8.14.0",
|
|
57
57
|
"eslint-config-prettier": "8.5.0",
|
|
58
|
-
"eslint-import-resolver-typescript": "2.
|
|
59
|
-
"eslint-plugin-import": "2.
|
|
58
|
+
"eslint-import-resolver-typescript": "2.7.1",
|
|
59
|
+
"eslint-plugin-import": "2.26.0",
|
|
60
60
|
"eslint-plugin-sort-class-members": "1.14.1",
|
|
61
61
|
"eslint-plugin-sort-destructure-keys": "1.4.0",
|
|
62
62
|
"husky": "7.0.4",
|
|
63
|
-
"lint-staged": "12.
|
|
63
|
+
"lint-staged": "12.4.1",
|
|
64
64
|
"pinst": "3.0.0",
|
|
65
|
-
"prettier": "2.
|
|
65
|
+
"prettier": "2.6.2",
|
|
66
66
|
"semantic-release": "19.0.2",
|
|
67
|
-
"sort-package-json": "1.
|
|
68
|
-
"typescript": "4.6.
|
|
67
|
+
"sort-package-json": "1.55.0",
|
|
68
|
+
"typescript": "4.6.4"
|
|
69
69
|
},
|
|
70
|
+
"packageManager": "yarn@4.0.0-rc.3",
|
|
70
71
|
"engines": {
|
|
71
72
|
"node": ">=14"
|
|
72
73
|
},
|
|
73
|
-
"
|
|
74
|
-
"version": "4.1.1"
|
|
74
|
+
"version": "4.2.1"
|
|
75
75
|
}
|