jiti
Advanced tools
Comparing version 1.21.0 to 1.21.1
#!/usr/bin/env node | ||
const { resolve } = require("path"); | ||
const { resolve } = require("node:path"); | ||
@@ -8,3 +8,3 @@ const script = process.argv.splice(2, 1)[0]; | ||
if (!script) { | ||
// eslint-disable-next-line no-console | ||
console.error("Usage: jiti <path> [...arguments]"); | ||
@@ -11,0 +11,0 @@ process.exit(1); |
/// <reference types="node" /> | ||
import { Module } from "module"; | ||
/// <reference types="node" /> | ||
import { Module } from "node:module"; | ||
import { TransformOptions, JITIOptions, JITIImportOptions } from "./types"; | ||
@@ -4,0 +5,0 @@ export type { JITIOptions, TransformOptions } from "./types"; |
@@ -5,3 +5,3 @@ function onError(err) { | ||
module.exports = function (filename, opts) { | ||
module.exports = function jiti(filename, opts) { | ||
const jiti = require("../dist/jiti"); | ||
@@ -8,0 +8,0 @@ |
{ | ||
"name": "jiti", | ||
"version": "1.21.0", | ||
"version": "1.21.1", | ||
"description": "Runtime typescript and ESM support for Node.js", | ||
@@ -21,4 +21,4 @@ "repository": "unjs/jiti", | ||
"jiti:legacy": "JITI_DEBUG=1 npx node@12 ./bin/jiti.js", | ||
"lint": "eslint --ext .ts,.js . && prettier -c src lib test stubs", | ||
"lint:fix": "eslint --fix --ext .ts,.js . && prettier -w src lib test stubs", | ||
"lint": "eslint . && prettier -c src lib test stubs", | ||
"lint:fix": "eslint --fix . && prettier -w src lib test stubs", | ||
"release": "pnpm build && pnpm test && changelogen --release --push && npm publish", | ||
@@ -29,22 +29,22 @@ "test": "pnpm lint && vitest run --coverage && pnpm test:bun", | ||
"devDependencies": { | ||
"@babel/core": "^7.23.2", | ||
"@babel/plugin-proposal-decorators": "^7.23.2", | ||
"@babel/core": "^7.24.5", | ||
"@babel/plugin-proposal-decorators": "^7.24.1", | ||
"@babel/plugin-syntax-class-properties": "^7.12.13", | ||
"@babel/plugin-syntax-import-assertions": "^7.22.5", | ||
"@babel/plugin-transform-export-namespace-from": "^7.22.11", | ||
"@babel/plugin-transform-modules-commonjs": "^7.23.0", | ||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11", | ||
"@babel/plugin-transform-optional-chaining": "^7.23.0", | ||
"@babel/plugin-transform-typescript": "^7.22.15", | ||
"@babel/preset-typescript": "^7.23.2", | ||
"@babel/template": "^7.22.15", | ||
"@babel/types": "^7.23.0", | ||
"@types/babel__core": "^7.20.3", | ||
"@types/babel__template": "^7.4.3", | ||
"@types/node": "^20.8.9", | ||
"@types/object-hash": "^3.0.5", | ||
"@types/resolve": "^1.20.4", | ||
"@types/semver": "^7.5.4", | ||
"@vitest/coverage-v8": "^0.34.6", | ||
"acorn": "^8.11.2", | ||
"@babel/plugin-syntax-import-assertions": "^7.24.1", | ||
"@babel/plugin-transform-export-namespace-from": "^7.24.1", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.1", | ||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.1", | ||
"@babel/plugin-transform-optional-chaining": "^7.24.5", | ||
"@babel/plugin-transform-typescript": "^7.24.5", | ||
"@babel/preset-typescript": "^7.24.1", | ||
"@babel/template": "^7.24.0", | ||
"@babel/types": "^7.24.5", | ||
"@types/babel__core": "^7.20.5", | ||
"@types/babel__template": "^7.4.4", | ||
"@types/node": "^20.12.8", | ||
"@types/object-hash": "^3.0.6", | ||
"@types/resolve": "^1.20.6", | ||
"@types/semver": "^7.5.8", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"acorn": "^8.11.3", | ||
"babel-plugin-dynamic-import-node": "^2.3.3", | ||
@@ -54,31 +54,31 @@ "babel-plugin-parameter-decorator": "^1.0.16", | ||
"changelogen": "^0.5.5", | ||
"config": "^3.3.9", | ||
"config": "^3.3.11", | ||
"create-require": "^1.1.1", | ||
"destr": "^2.0.2", | ||
"destr": "^2.0.3", | ||
"escape-string-regexp": "^5.0.0", | ||
"eslint": "^8.52.0", | ||
"eslint-config-unjs": "^0.2.1", | ||
"eslint": "^9.2.0", | ||
"eslint-config-unjs": "^0.3.2", | ||
"esm": "^3.2.25", | ||
"estree-walker": "^3.0.3", | ||
"execa": "^8.0.1", | ||
"fast-glob": "^3.3.1", | ||
"mlly": "^1.4.2", | ||
"execa": "^9.1.0", | ||
"fast-glob": "^3.3.2", | ||
"mlly": "^1.7.0", | ||
"object-hash": "^3.0.0", | ||
"pathe": "^1.1.1", | ||
"pathe": "^1.1.2", | ||
"pirates": "^4.0.6", | ||
"pkg-types": "^1.0.3", | ||
"prettier": "^3.0.3", | ||
"reflect-metadata": "^0.1.13", | ||
"semver": "^7.5.4", | ||
"std-env": "^3.4.3", | ||
"terser-webpack-plugin": "^5.3.9", | ||
"ts-loader": "^9.5.0", | ||
"pkg-types": "^1.1.0", | ||
"prettier": "^3.2.5", | ||
"reflect-metadata": "^0.2.1", | ||
"semver": "^7.6.0", | ||
"std-env": "^3.7.0", | ||
"terser-webpack-plugin": "^5.3.10", | ||
"ts-loader": "^9.5.1", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.5.0", | ||
"vitest": "^0.34.6", | ||
"webpack": "^5.89.0", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.11", | ||
"vitest": "^1.6.0", | ||
"webpack": "^5.91.0", | ||
"webpack-cli": "^5.1.4" | ||
}, | ||
"packageManager": "pnpm@8.8.0" | ||
} | ||
"packageManager": "pnpm@9.1.4" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1949031
4624