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

@gjuchault/typescript-library-starter

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gjuchault/typescript-library-starter - npm Package Compare versions

Comparing version 3.4.3 to 4.0.0

4

.vscode/launch.json

@@ -11,4 +11,4 @@ {

"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"program": "${workspaceRoot}/node_modules/tsx/dist/cli.mjs",
"args": ["--inspect", "--test", "${relativeFile}"],
"smartStep": true,

@@ -15,0 +15,0 @@ "console": "integratedTerminal"

@@ -1,6 +0,11 @@

## [3.4.3](https://github.com/gjuchault/typescript-library-starter/compare/v3.4.2...v3.4.3) (2023-10-23)
# [4.0.0](https://github.com/gjuchault/typescript-library-starter/compare/v3.4.3...v4.0.0) (2023-10-24)
### Bug Fixes
### Features
* add vscode task && use node native assert ([014dfcd](https://github.com/gjuchault/typescript-library-starter/commit/014dfcdf4e9bc616d60ee2a2ddc2f52fe14af87c))
* **node:** upgrade to Node.js 21, use native test runner ([3660a2c](https://github.com/gjuchault/typescript-library-starter/commit/3660a2c30f241b5407bf4584d214c6601479f70a))
### BREAKING CHANGES
* **node:** Use native test runner instead of vite
{
"name": "@gjuchault/typescript-library-starter",
"version": "3.4.3",
"version": "4.0.0",
"description": "Yet another typescript library starter template",

@@ -20,8 +20,8 @@ "keywords": [

"engines": {
"node": "^18.17.1",
"npm": "^9.6.7"
"node": "^21.0.0",
"npm": "^10.2.0"
},
"volta": {
"node": "18.17.1",
"npm": "9.6.7"
"node": "21.0.0",
"npm": "10.2.0"
},

@@ -33,4 +33,4 @@ "publishConfig": {

"setup": "tsx ./scripts/setup.ts",
"build": "npm run clean && npm run type:dts && npm run build:main",
"build:main": "tsx ./scripts/build.ts",
"build": "npm run clean && npm run type:dts && npm run build:src",
"build:src": "tsx ./scripts/build.ts",
"clean": "rimraf build coverage",

@@ -43,5 +43,5 @@ "type:dts": "tsc --emitDeclarationOnly --project tsconfig.build.json",

"lint:check": "eslint src --ext .ts",
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"test": "tsx --test src/**/*.test.ts",
"test:watch": "tsx --watch --test src/**/*.test.ts",
"test:coverage": "npm run clean && npm run build:src -- --tests && NODE_V8_COVERAGE=./coverage c8 -r html node --experimental-test-coverage --test build/**/*.test.js",
"test:setup": "tsx ./scripts/test-setup.ts",

@@ -64,3 +64,2 @@ "spell:check": "cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"",

"@typescript-eslint/parser": "^6.8.0",
"@vitest/coverage-v8": "^0.34.6",
"c8": "^8.0.1",

@@ -83,5 +82,4 @@ "cspell": "^7.3.8",

"tsx": "^3.14.0",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
"typescript": "^5.2.2"
}
}

@@ -49,9 +49,9 @@ # TypeScript Library Starter

TypeScript Library Starter uses [Vitest](https://vitest.dev/). Coverage is done through Vitest, using [c8](https://github.com/bcoe/c8).
TypeScript Library Starter uses [Node.js's native test runner](https://nodejs.org/api/test.html). Coverage is done using [c8](https://github.com/bcoe/c8) but will switch to Node.js's one once out.
Commands:
- `test`: runs Vitest test runner
- `test:watch`: runs Vitest test runner in watch mode
- `test:coverage`: runs Vitest test runner and generates coverage reports
- `test`: runs test runner
- `test:watch`: runs test runner in watch mode
- `test:coverage`: runs test runner and generates coverage reports

@@ -58,0 +58,0 @@ ### Format & lint

@@ -22,7 +22,7 @@ import path from "node:path";

async function build() {
async function build({ includeTests = false }: { includeTests?: boolean }) {
const filesStream = globbyStream("**/*.ts", {
cwd: srcPath,
onlyFiles: true,
ignore: ["__tests__"],
ignore: includeTests ? [] : ["__tests__"],
});

@@ -41,4 +41,6 @@

if (process.argv[1] === url.fileURLToPath(import.meta.url)) {
await build();
await build({
includeTests: process.argv.includes("--tests"),
});
}
}
import * as assert from "node:assert/strict";
import { describe, it } from "node:test";
import { describe, it } from "vitest";
import { foobar } from "../index.js";

@@ -6,0 +5,0 @@

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