New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@playform/build

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@playform/build - npm Package Compare versions

Comparing version

to
0.1.8

Target/Function/Merge/Into.d.ts

8

package.json
{
"name": "@playform/build",
"version": "0.1.7",
"version": "0.1.8",
"private": false,

@@ -37,9 +37,9 @@ "description": "🌀 Build —",

"dependencies": {
"@types/node": "22.7.0",
"@types/node": "22.7.7",
"commander": "12.1.0",
"deepmerge-ts": "7.1.0",
"deepmerge-ts": "7.1.3",
"esbuild": "0.24.0",
"fast-glob": "3.3.2",
"tsc-alias": "1.8.10",
"typescript": "5.6.2"
"typescript": "5.6.3"
},

@@ -46,0 +46,0 @@ "devDependencies": {

# 🌀 [Build] —
`Build` is a powerful tool that compiles all your `TypeScript` files into
`JavaScript`, leveraging the speed of `ESBuild` and the type-checking capabilities
of the `TypeScript` compiler.
`JavaScript`, leveraging the speed of `ESBuild` and the type-checking
capabilities of the `TypeScript` compiler.

@@ -84,3 +84,3 @@ ## 📦 Features

See an example of a configuration file in
[ESBuild.ts](Source/Variable/ESBuild.ts)
[`ESBuild.ts`](Source/Variable/ESBuild.ts)

@@ -121,12 +121,8 @@ ### 📜 TypeScript Configuration

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for
Contributions are welcome! Please see [`CONTRIBUTING.md`](CONTRIBUTING.md) for
guidelines and feel free to submit a Pull Request.
## 📄 License
This project is licensed under the MIT [LICENSE](LICENSE).
## Changelog
See [CHANGELOG.md](CHANGELOG.md) for a history of changes to this component.
See [`CHANGELOG.md`](CHANGELOG.md) for a history of changes to this component.

@@ -133,0 +129,0 @@ [ESBuild]: HTTPS://NPMJS.Org/esbuild

#!/usr/bin/env node
var i=new(await import("commander")).Command().name("Build").version("0.1.7").description("\u{1F300}\u2001Build\u2001\u2014").argument("<File...>","\u{1F4DD}\u2001File\u2001\u2014").option("-ES, --ESBuild <File>","\u{1F4DC}\u2001ESBuild\u2001\u2014").option("-TS, --TypeScript <File>","\u{1F4DC}\u2001TypeScript\u2001\u2014","tsconfig.json").option("-W --Watch","\u{1F441}\uFE0F\u2001Watch\u2001\u2014").action((await import("../Function/Build.js")).default).parse();export{i as default};
var i=new(await import("commander")).Command().name("Build").version("0.1.8").description("\u{1F300}\u2001Build\u2001\u2014").argument("<File...>","\u{1F4DD}\u2001File\u2001\u2014").option("-ES, --ESBuild <File>","\u{1F4DC}\u2001ESBuild\u2001\u2014").option("-TS, --TypeScript <File>","\u{1F4DC}\u2001TypeScript\u2001\u2014","tsconfig.json").option("-W --Watch","\u{1F441}\uFE0F\u2001Watch\u2001\u2014").action((await import("../Function/Build.js")).default).parse();export{i as default};

@@ -9,15 +9,5 @@ import type Interface from "../Interface/Build.js";

export declare const Exec: import("../Interface/Exec.js").default;
export declare const Merge: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, Readonly<{
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
DeepMergeArraysURI: "DeepMergeArraysDefaultURI";
DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
DeepMergeOthersURI: "DeepMergeLeafURI";
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI";
}>, Readonly<{
key: PropertyKey;
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>;
}>>;
export declare const Merge: <T extends object>(Target: T, Source: T) => T;
export declare const Pipe: string[];
export declare const extname: (path: string) => string, basename: (path: string, suffix?: string) => string, relative: (from: string, to: string) => string, dirname: (path: string) => string, normalize: (path: string) => string, sep: "\\" | "/";
export declare const Current: string;

@@ -1,1 +0,1 @@

var p=async(...[s,a])=>{for(const e of s)for(const l of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',""),{ignore:a?.Exclude??[]}))r.push(l);r.reverse();let t=i((await import("../Variable/ESBuild.js")).default,{entryPoints:r});t=i(a?.ESBuild?i(t,await(await import("./File.js")).default(a.ESBuild)):t,{tsconfig:a?.TypeScript??"tsconfig.json"}),t.plugins?.push({name:"TypeScript",setup({onEnd:e}){e(async()=>{await o(`tsc -p ${t.tsconfig}`),await o(`tsc-alias -f -p ${t.tsconfig}`)})}}),a?.Watch?await(await(await import("esbuild")).context(t)).watch():console.log(await(await import("esbuild")).analyzeMetafile((await(await import("esbuild")).build(t))?.metafile??"",{verbose:!0}))};const{default:o}=await import("../Function/Exec.js"),{default:i}=await import("../Function/Merge.js"),r=[],{extname:c,basename:f,relative:m,dirname:n,normalize:u,sep:w}=await import("path"),d=(await import("url")).fileURLToPath(n(import.meta.url));export{d as Current,o as Exec,i as Merge,r as Pipe,f as basename,p as default,n as dirname,c as extname,u as normalize,m as relative,w as sep};
var p=async(...[s,a])=>{for(const e of s)for(const l of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',""),{ignore:a?.Exclude??[]}))r.push(l);r.reverse();const t=(await import("../Variable/ESBuild.js")).default;i(t,{entryPoints:r}),a?.ESBuild&&i(t,await(await import("./File.js")).default(a.ESBuild)),i(t,{tsconfig:a?.TypeScript??"tsconfig.json"}),!t.plugins&&!Array.isArray(t.plugins)&&(t.plugins=[]),t.plugins?.push({name:"TypeScript",setup({onEnd:e}){e(async()=>{await o(`tsc -p ${t.tsconfig}`),await o(`tsc-alias -f -p ${t.tsconfig}`)})}}),a?.Watch?await(await(await import("esbuild")).context(t)).watch():console.log(await(await import("esbuild")).analyzeMetafile((await(await import("esbuild")).build(t))?.metafile??"",{verbose:!0}))};const{default:o}=await import("../Function/Exec.js"),{default:i}=await import("../Function/Merge.js"),r=[],{extname:c,basename:f,relative:u,dirname:n,normalize:m,sep:w}=await import("path"),g=(await import("url")).fileURLToPath(n(import.meta.url));export{g as Current,o as Exec,i as Merge,r as Pipe,f as basename,p as default,n as dirname,c as extname,m as normalize,u as relative,w as sep};

@@ -0,1 +1,2 @@

import type Interface from "../Interface/Exec.js";
/**

@@ -7,2 +8,1 @@ * @module Exec

export default _default;
import type Interface from "../Interface/Exec.js";

@@ -1,1 +0,1 @@

var c=async(...[r,a=async t=>console.log(t)])=>{try{const{stdout:t,stderr:n}=(await import("child_process")).exec(r);typeof a=="function"&&(t?.on("data",async e=>await a(e.trim())),n?.on("data",async e=>await a(e.trim(),!0)))}catch(t){console.log(t)}};export{c as default};
var o=async(...[r,a=async t=>console.log(t)])=>{try{const{stdout:t,stderr:n}=(await import("child_process")).exec(r);typeof a=="function"&&(t?.on("data",async e=>await a(e.trim())),n?.on("data",async e=>await a(e.trim(),!0)))}catch(t){console.log(t)}};export{o as default};

@@ -0,1 +1,2 @@

import type Interface from "../Interface/File.js";
/**

@@ -7,2 +8,1 @@ * @module File

export default _default;
import type Interface from "../Interface/File.js";

@@ -1,1 +0,1 @@

var i=async(...[t])=>{if(t.split(".").pop()==="ts"){const{options:a}=(await import("typescript")).default.convertCompilerOptionsFromJson((await(await import("../Function/JSON.js")).default("../../tsconfig.json",(await import("path")).dirname((await import("url")).fileURLToPath(import.meta.url))))?.compilerOptions,".");(await import("typescript")).default.createProgram([t],a,(await import("typescript")).default.createCompilerHost(a)).emit(),await(await import("fs/promises")).writeFile(t.replace(".ts",".js"),(await import("typescript")).default.transpile((await(await import("fs/promises")).readFile(t,"utf-8")).toString(),a))}return(await import((await import("url")).pathToFileURL(t).toString().replace(".ts",".js"))).default};export{i as default};
var a=async(...[t])=>{if(t.split(".").pop()==="ts"){const{options:i}=(await import("typescript")).default.convertCompilerOptionsFromJson((await(await import("../Function/JSON.js")).default("../../tsconfig.json",(await import("path")).dirname((await import("url")).fileURLToPath(import.meta.url))))?.compilerOptions,".");(await import("typescript")).default.createProgram([t],i,(await import("typescript")).default.createCompilerHost(i)).emit(),await(await import("fs/promises")).writeFile(t.replace(".ts",".js"),(await import("typescript")).default.transpile((await(await import("fs/promises")).readFile(t,"utf-8")).toString(),i))}return(await import((await import("url")).pathToFileURL(t).toString().replace(".ts",".js"))).default};export{a as default};

@@ -0,1 +1,2 @@

import type Interface from "../Interface/JSON.js";
/**

@@ -7,2 +8,1 @@ * @module JSON

export default _default;
import type Interface from "../Interface/JSON.js";

@@ -1,1 +0,1 @@

var t=async(...[e,a])=>JSON.parse((await(await import("fs/promises")).readFile(`${a??"."}/${e}`,"utf-8")).toString());export{t as default};
var a=async(...[e,t])=>JSON.parse((await(await import("fs/promises")).readFile(`${t??"."}/${e}`,"utf-8")).toString());export{a as default};

@@ -5,13 +5,4 @@ /**

*/
declare const _default: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, Readonly<{
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
DeepMergeArraysURI: "DeepMergeArraysDefaultURI";
DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
DeepMergeOthersURI: "DeepMergeLeafURI";
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI";
}>, Readonly<{
key: PropertyKey;
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>;
}>>;
declare const _default: <T extends object>(Target: T, Source: T) => T;
export default _default;
export declare const Into: import("../Interface/Merge/Into.js").default;

@@ -1,1 +0,1 @@

var e=(await import("deepmerge-ts")).deepmergeCustom({mergeArrays:!1});export{e as default};
var a=(t,e)=>o(t,e);const{default:o}=await import("./Merge/Into.js");export{o as Into,a as default};

@@ -0,1 +1,2 @@

import type { Pattern } from "fast-glob";
/**

@@ -25,2 +26,1 @@ * @module Build

}
import type { Pattern } from "fast-glob";

Sorry, the diff of this file is not supported yet