Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sunney/create-ts-app

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sunney/create-ts-app - npm Package Compare versions

Comparing version 2.0.13 to 2.0.14

2

package.json
{
"name": "@sunney/create-ts-app",
"version": "2.0.13",
"version": "2.0.14",
"description": "Create a TypeScript app with a single command",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -1,12 +0,24 @@

import { defineConfig } from "tsup";
import { defineConfig, type Options } from "tsup";
export default defineConfig((options) => ({
entry: ["src/index.ts"],
sourcemap: !options.watch,
minify: !options.watch,
clean: !options.watch,
format: options.watch ? ["esm"] : ["cjs", "esm"],
dts: true,
outDir: "lib",
onSuccess: options.watch ? "node lib/index.mjs" : undefined,
}));
export default defineConfig((flags) => {
const buildOptions: Options = {
minify: true,
clean: true,
format: ["cjs", "esm"],
dts: true,
};
const devOptions: Options = {
sourcemap: true,
format: ["esm"],
onSuccess: "node ./dist/index.mjs",
};
const options = flags.watch ? devOptions : buildOptions;
return {
entry: ["src/index.ts"],
outDir: "dist",
...options,
};
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc