a comparison of tools within the JavaScript ecosystem

cleanup: reorganize packages #3

merged opened by samanthanguyen.me targeting main from reorg
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:smd2mvg2dao4rqnnz6qexdov/sh.tangled.repo.pull/3mbwrjyvunm22
+1313 -1174
Diff #0
+1 -1
.tangled/workflows/build-tsc.yml
··· 15 15 - name: Install dependencies 16 16 command: pnpm install --frozen-lockfile 17 17 - name: Build packages, run publint 18 - command: 18 + command: pnpm run build-tsc
+18
.tangled/workflows/build-tsup.yml
··· 1 + when: 2 + - event: ['push', 'pull_request'] 3 + branch: ['main'] 4 + 5 + engine: 'nixery' 6 + 7 + dependencies: 8 + nixpkgs: 9 + - coreutils 10 + - gnused 11 + - nodejs_24 12 + - pnpm 13 + 14 + steps: 15 + - name: Install dependencies 16 + command: pnpm install --frozen-lockfile 17 + - name: Build packages, run publint 18 + command: pnpm run build-tsup
+11
libs/esbuild/node-esbuild-js-cjs/build.js
··· 1 + const esbuild = require('esbuild') 2 + const build = esbuild.build 3 + 4 + // oxlint-disable-next-line typescript-eslint(no-floating-promises) 5 + build({ 6 + entryPoints: ['src/index.js'], 7 + outdir: 'dist', 8 + format: 'cjs', 9 + external: [], 10 + sourcemap: true, 11 + })
+34
libs/esbuild/node-esbuild-js-cjs/package.json
··· 1 + { 2 + "name": "node-esbuild-js-cjs", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (CommonJS), esbuild", 6 + "keywords": [ 7 + "commonjs", 8 + "esbuild", 9 + "javascript", 10 + "node" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "commonjs", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "require": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "pnpm run dts && node build.js", 25 + "dts": "tsc", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "esbuild": "catalog:bundler", 31 + "typescript": "catalog:bundler" 32 + }, 33 + "require": "./dist/index.js" 34 + }
+7
libs/esbuild/node-esbuild-js-cjs/src/index.js
··· 1 + /** 2 + * @param {string} name 3 + * @returns string 4 + */ 5 + exports.greet = function (name) { 6 + return `Hello ${name}` 7 + }
+10
libs/esbuild/node-esbuild-js-cjs/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+10
libs/esbuild/node-esbuild-js-esm/build.js
··· 1 + import { build } from 'esbuild' 2 + 3 + // oxlint-disable-next-line typescript-eslint(no-floating-promises) 4 + await build({ 5 + entryPoints: ['src/index.js'], 6 + outdir: 'dist', 7 + format: 'esm', 8 + external: [], 9 + sourcemap: true, 10 + })
+33
libs/esbuild/node-esbuild-js-esm/package.json
··· 1 + { 2 + "name": "node-esbuild-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (ESM), esbuild", 6 + "keywords": [ 7 + "esbuild", 8 + "esm", 9 + "javascript", 10 + "node" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "pnpm run dts && node build.js", 25 + "dts": "tsc", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "esbuild": "catalog:bundler", 31 + "typescript": "catalog:bundler" 32 + } 33 + }
+3
libs/esbuild/node-esbuild-js-esm/src/index.js
··· 1 + export function greet(name) { 2 + return `Hello ${name}` 3 + }
+10
libs/esbuild/node-esbuild-js-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+10
libs/esbuild/node-esbuild-ts-esm/build.js
··· 1 + import { build } from 'esbuild' 2 + 3 + // oxlint-disable-next-line typescript-eslint(no-floating-promises) 4 + build({ 5 + entryPoints: ['src/index.ts'], 6 + outdir: 'dist', 7 + format: 'esm', 8 + external: [], 9 + sourcemap: true, 10 + })
+33
libs/esbuild/node-esbuild-ts-esm/package.json
··· 1 + { 2 + "name": "node-esbuild-ts-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, TypeScript (ESM), esbuild", 6 + "keywords": [ 7 + "esbuild", 8 + "esm", 9 + "node", 10 + "typescript" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "pnpm run dts && node build.js", 25 + "dts": "tsc", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "esbuild": "catalog:bundler", 31 + "typescript": "catalog:bundler" 32 + } 33 + }
+3
libs/esbuild/node-esbuild-ts-esm/src/index.ts
··· 1 + export function greet(name: string) { 2 + return `Hello ${name}` 3 + }
+44
libs/esbuild/node-esbuild-ts-esm/tsconfig.json
··· 1 + // Handbook: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html 2 + // Reference: https://www.typescriptlang.org/tsconfig 3 + { 4 + "compilerOptions": { 5 + /* base options */ 6 + "esModuleInterop": true, 7 + "skipLibCheck": true, 8 + "allowJs": true, 9 + "resolveJsonModule": true, 10 + "verbatimModuleSyntax": true, 11 + "moduleDetection": "force", 12 + 13 + /* strictness */ 14 + "strict": true, 15 + "forceConsistentCasingInFileNames": true, 16 + "allowUnusedLabels": false, 17 + "allowUnreachableCode": false, 18 + "exactOptionalPropertyTypes": true, 19 + "noFallthroughCasesInSwitch": true, 20 + "noImplicitOverride": true, 21 + "noImplicitReturns": true, 22 + "noPropertyAccessFromIndexSignature": true, 23 + "noUncheckedIndexedAccess": true, 24 + "noUnusedLocals": true, 25 + "noUnusedParameters": true, 26 + 27 + /** ES support */ 28 + "useDefineForClassFields": true, 29 + 30 + /* transpilation */ 31 + "rootDir": "./src", 32 + "outDir": "./dist", 33 + "lib": ["ES2022"], 34 + "target": "ES2022", 35 + "module": "ESNext", 36 + "moduleResolution": "Bundler", 37 + "isolatedModules": true, 38 + "sourceMap": true, 39 + "emitDeclarationOnly": true, 40 + "declaration": true 41 + }, 42 + "include": ["src"], 43 + "exclude": ["build.js"] 44 + }
-11
libs/node-esbuild-js-cjs/build.js
··· 1 - const esbuild = require('esbuild') 2 - const build = esbuild.build 3 - 4 - // oxlint-disable-next-line typescript-eslint(no-floating-promises) 5 - build({ 6 - entryPoints: ['src/index.js'], 7 - outdir: 'dist', 8 - format: 'cjs', 9 - external: [], 10 - sourcemap: true, 11 - })
-34
libs/node-esbuild-js-cjs/package.json
··· 1 - { 2 - "name": "node-esbuild-js-cjs", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (CommonJS), esbuild", 6 - "keywords": [ 7 - "commonjs", 8 - "esbuild", 9 - "javascript", 10 - "node" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "commonjs", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "require": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "pnpm run dts && node build.js", 25 - "dts": "tsc", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "esbuild": "catalog:bundler", 31 - "typescript": "catalog:bundler" 32 - }, 33 - "require": "./dist/index.js" 34 - }
-7
libs/node-esbuild-js-cjs/src/index.js
··· 1 - /** 2 - * @param {string} name 3 - * @returns string 4 - */ 5 - exports.greet = function (name) { 6 - return `Hello ${name}` 7 - }
-10
libs/node-esbuild-js-cjs/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-10
libs/node-esbuild-js-esm/build.js
··· 1 - import { build } from 'esbuild' 2 - 3 - // oxlint-disable-next-line typescript-eslint(no-floating-promises) 4 - await build({ 5 - entryPoints: ['src/index.js'], 6 - outdir: 'dist', 7 - format: 'esm', 8 - external: [], 9 - sourcemap: true, 10 - })
-33
libs/node-esbuild-js-esm/package.json
··· 1 - { 2 - "name": "node-esbuild-js-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (ESM), esbuild", 6 - "keywords": [ 7 - "esbuild", 8 - "esm", 9 - "javascript", 10 - "node" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "pnpm run dts && node build.js", 25 - "dts": "tsc", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "esbuild": "catalog:bundler", 31 - "typescript": "catalog:bundler" 32 - } 33 - }
-3
libs/node-esbuild-js-esm/src/index.js
··· 1 - export function greet(name) { 2 - return `Hello ${name}` 3 - }
-10
libs/node-esbuild-js-esm/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-10
libs/node-esbuild-ts-esm/build.js
··· 1 - import { build } from 'esbuild' 2 - 3 - // oxlint-disable-next-line typescript-eslint(no-floating-promises) 4 - build({ 5 - entryPoints: ['src/index.ts'], 6 - outdir: 'dist', 7 - format: 'esm', 8 - external: [], 9 - sourcemap: true, 10 - })
-33
libs/node-esbuild-ts-esm/package.json
··· 1 - { 2 - "name": "node-esbuild-ts-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, TypeScript (ESM), esbuild", 6 - "keywords": [ 7 - "esbuild", 8 - "esm", 9 - "node", 10 - "typescript" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "pnpm run dts && node build.js", 25 - "dts": "tsc", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "esbuild": "catalog:bundler", 31 - "typescript": "catalog:bundler" 32 - } 33 - }
-3
libs/node-esbuild-ts-esm/src/index.ts
··· 1 - export function greet(name: string) { 2 - return `Hello ${name}` 3 - }
-44
libs/node-esbuild-ts-esm/tsconfig.json
··· 1 - // Handbook: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html 2 - // Reference: https://www.typescriptlang.org/tsconfig 3 - { 4 - "compilerOptions": { 5 - /* base options */ 6 - "esModuleInterop": true, 7 - "skipLibCheck": true, 8 - "allowJs": true, 9 - "resolveJsonModule": true, 10 - "verbatimModuleSyntax": true, 11 - "moduleDetection": "force", 12 - 13 - /* strictness */ 14 - "strict": true, 15 - "forceConsistentCasingInFileNames": true, 16 - "allowUnusedLabels": false, 17 - "allowUnreachableCode": false, 18 - "exactOptionalPropertyTypes": true, 19 - "noFallthroughCasesInSwitch": true, 20 - "noImplicitOverride": true, 21 - "noImplicitReturns": true, 22 - "noPropertyAccessFromIndexSignature": true, 23 - "noUncheckedIndexedAccess": true, 24 - "noUnusedLocals": true, 25 - "noUnusedParameters": true, 26 - 27 - /** ES support */ 28 - "useDefineForClassFields": true, 29 - 30 - /* transpilation */ 31 - "rootDir": "./src", 32 - "outDir": "./dist", 33 - "lib": ["ES2022"], 34 - "target": "ES2022", 35 - "module": "ESNext", 36 - "moduleResolution": "Bundler", 37 - "isolatedModules": true, 38 - "sourceMap": true, 39 - "emitDeclarationOnly": true, 40 - "declaration": true 41 - }, 42 - "include": ["src"], 43 - "exclude": ["build.js"] 44 - }
-39
libs/node-parcel-js-cjs/package.json
··· 1 - { 2 - "name": "node-parcel-js-cjs", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (CommonJS), Parcel", 6 - "keywords": [ 7 - "commonjs", 8 - "javascript", 9 - "node", 10 - "parcel" 11 - ], 12 - "source": "src/index.js", 13 - "files": [ 14 - "dist" 15 - ], 16 - "type": "commonjs", 17 - "main": "dist/index.js", 18 - "types": "dist/index.d.ts", 19 - "exports": { 20 - ".": { 21 - "types": "./dist/index.d.ts", 22 - "require": "./dist/index.js" 23 - } 24 - }, 25 - "scripts": { 26 - "build": "parcel build --cache-dir ./.parcel-cache && pnpm run dts", 27 - "dev": "parcel watch --cache-dir ./.parcel-cache && pnpm run dts", 28 - "dts": "tsc", 29 - "prepublint": "pnpm run build", 30 - "publint": "publint ." 31 - }, 32 - "devDependencies": { 33 - "parcel": "catalog:bundler", 34 - "typescript": "catalog:bundler" 35 - }, 36 - "targets": { 37 - "types": false 38 - } 39 - }
-7
libs/node-parcel-js-cjs/src/index.js
··· 1 - /** 2 - * @param {string} name 3 - * @returns string 4 - */ 5 - exports.greet = function (name) { 6 - return `Hello ${name}` 7 - }
-10
libs/node-parcel-js-cjs/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-39
libs/node-parcel-js-esm/package.json
··· 1 - { 2 - "name": "node-parcel-js-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (ESM), Parcel", 6 - "keywords": [ 7 - "esm", 8 - "javascript", 9 - "node", 10 - "parcel" 11 - ], 12 - "source": "src/index.js", 13 - "files": [ 14 - "dist" 15 - ], 16 - "type": "module", 17 - "module": "dist/module.js", 18 - "types": "dist/index.d.ts", 19 - "exports": { 20 - ".": { 21 - "types": "./dist/index.d.ts", 22 - "import": "./dist/module.js" 23 - } 24 - }, 25 - "scripts": { 26 - "build": "parcel build --cache-dir ./.parcel-cache && pnpm run dts", 27 - "dev": "parcel watch --cache-dir ./.parcel-cache && pnpm run dts", 28 - "dts": "tsc", 29 - "prepublint": "pnpm run build", 30 - "publint": "publint ." 31 - }, 32 - "devDependencies": { 33 - "parcel": "catalog:bundler", 34 - "typescript": "catalog:bundler" 35 - }, 36 - "targets": { 37 - "types": false 38 - } 39 - }
-3
libs/node-parcel-js-esm/src/index.js
··· 1 - export function greet(name) { 2 - return `Hello ${name}` 3 - }
-10
libs/node-parcel-js-esm/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-37
libs/node-parcel-ts-esm/package.json
··· 1 - { 2 - "name": "node-parcel-ts-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, TypeScript (ESM), Parcel", 6 - "keywords": [ 7 - "esm", 8 - "node", 9 - "parcel", 10 - "typescript" 11 - ], 12 - "source": "./src/index.ts", 13 - "files": [ 14 - "dist" 15 - ], 16 - "type": "module", 17 - "module": "./dist/module.js", 18 - "types": "./dist/types.d.ts", 19 - "exports": { 20 - ".": { 21 - "types": "./dist/types.d.ts", 22 - "import": "./dist/module.js" 23 - } 24 - }, 25 - "scripts": { 26 - "build": "parcel build --cache-dir ./.parcel-cache", 27 - "dev": "parcel watch --cache-dir ./.parcel-cache", 28 - "prepublint": "pnpm run build", 29 - "publint": "publint ." 30 - }, 31 - "devDependencies": { 32 - "@parcel/packager-ts": "catalog:bundler", 33 - "@parcel/transformer-typescript-types": "catalog:bundler", 34 - "parcel": "catalog:bundler", 35 - "typescript": "catalog:bundler" 36 - } 37 - }
-3
libs/node-parcel-ts-esm/src/index.ts
··· 1 - export function greet(name: string) { 2 - return `Hello ${name}` 3 - }
-37
libs/node-rollup-js-cjs/package.json
··· 1 - { 2 - "name": "node-rollup-js-cjs", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (CommonJS), Rollup", 6 - "keywords": [ 7 - "commonjs", 8 - "javascript", 9 - "node", 10 - "rollup" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "commonjs", 16 - "main": "./dist/index.js", 17 - "types": "./dist/index.d.ts", 18 - "exports": { 19 - ".": { 20 - "types": "./dist/index.d.ts", 21 - "require": "./dist/index.js" 22 - } 23 - }, 24 - "scripts": { 25 - "build": "pnpm run dts && rollup --config rollup.config.js", 26 - "dev": "pnpm run build -- -w", 27 - "dts": "tsc", 28 - "prepublint": "pnpm run build", 29 - "publint": "publint ." 30 - }, 31 - "devDependencies": { 32 - "@rollup/plugin-commonjs": "catalog:bundler", 33 - "@rollup/plugin-node-resolve": "catalog:bundler", 34 - "rollup": "catalog:bundler", 35 - "rollup-plugin-dts": "catalog:bundler" 36 - } 37 - }
-17
libs/node-rollup-js-cjs/rollup.config.js
··· 1 - const commonjs = require('@rollup/plugin-commonjs').default 2 - const { nodeResolve } = require('@rollup/plugin-node-resolve') 3 - const { defineConfig } = require('rollup') 4 - const { dts } = require('rollup-plugin-dts') 5 - 6 - module.exports = defineConfig([ 7 - { 8 - input: 'src/index.js', 9 - output: [{ file: 'dist/index.js', format: 'cjs', exports: 'named' }], 10 - plugins: [nodeResolve(), commonjs()], 11 - }, 12 - { 13 - input: 'src/index.js', 14 - output: [{ file: 'dist/index.d.ts', format: 'cjs' }], 15 - plugins: [dts()], 16 - }, 17 - ])
-7
libs/node-rollup-js-cjs/src/index.js
··· 1 - /** 2 - * @param {string} name 3 - * @returns string 4 - */ 5 - exports.greet = function (name) { 6 - return `Hello ${name}` 7 - }
-10
libs/node-rollup-js-cjs/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-35
libs/node-rollup-js-esm/package.json
··· 1 - { 2 - "name": "node-rollup-js-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (ESM), Rollup", 6 - "keywords": [ 7 - "esm", 8 - "javascript", 9 - "node", 10 - "rollup" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "rollup --config rollup.config.js", 25 - "dev": "pnpm run build -- -w", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "rollup": "catalog:bundler", 31 - "rollup-plugin-dts": "catalog:bundler", 32 - "tslib": "catalog:bundler", 33 - "typescript": "catalog:bundler" 34 - } 35 - }
-14
libs/node-rollup-js-esm/rollup.config.js
··· 1 - import { defineConfig } from 'rollup' 2 - import { dts } from 'rollup-plugin-dts' 3 - 4 - export default defineConfig([ 5 - { 6 - input: 'src/index.js', 7 - output: [{ file: 'dist/index.js', format: 'esm' }], 8 - }, 9 - { 10 - input: 'src/index.js', 11 - output: [{ file: 'dist/index.d.ts', format: 'esm' }], 12 - plugins: [dts()], 13 - }, 14 - ])
-3
libs/node-rollup-js-esm/src/index.js
··· 1 - export function greet(name) { 2 - return `Hello ${name}` 3 - }
-36
libs/node-rollup-ts-esm/package.json
··· 1 - { 2 - "name": "node-rollup-ts-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, TypeScript (ESM), Rollup", 6 - "keywords": [ 7 - "esm", 8 - "node", 9 - "rollup", 10 - "typescript" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "rollup --config rollup.config.ts --configPlugin typescript", 25 - "dev": "pnpm run build -- -w", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "@rollup/plugin-typescript": "catalog:bundler", 31 - "rollup": "catalog:bundler", 32 - "rollup-plugin-dts": "catalog:bundler", 33 - "tslib": "catalog:bundler", 34 - "typescript": "catalog:bundler" 35 - } 36 - }
-16
libs/node-rollup-ts-esm/rollup.config.ts
··· 1 - import typescript from '@rollup/plugin-typescript' 2 - import { defineConfig } from 'rollup' 3 - import { dts } from 'rollup-plugin-dts' 4 - 5 - export default defineConfig([ 6 - { 7 - input: 'src/index.ts', 8 - output: [{ file: 'dist/index.js', format: 'esm' }], 9 - plugins: [typescript()], 10 - }, 11 - { 12 - input: 'src/index.ts', 13 - output: [{ file: 'dist/index.d.ts', format: 'esm' }], 14 - plugins: [dts()], 15 - }, 16 - ])
-3
libs/node-rollup-ts-esm/src/index.ts
··· 1 - export function greet(name: string) { 2 - return `Hello ${name}` 3 - }
-32
libs/node-tsc-js-cjs/package.json
··· 1 - { 2 - "name": "node-tsc-js-cjs", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (CommonJS), TypeScript Compiler CLI", 6 - "keywords": [ 7 - "commonjs", 8 - "javascript", 9 - "node", 10 - "tsc" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "commonjs", 16 - "main": "dist/index.js", 17 - "types": "dist/index.d.ts", 18 - "exports": { 19 - ".": { 20 - "types": "./dist/index.d.ts", 21 - "require": "./dist/index.js" 22 - } 23 - }, 24 - "scripts": { 25 - "build": "tsc", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "typescript": "catalog:bundler" 31 - } 32 - }
-7
libs/node-tsc-js-cjs/src/index.js
··· 1 - /** 2 - * @param {string} name 3 - * @returns string 4 - */ 5 - exports.greet = function (name) { 6 - return `Hello ${name}` 7 - }
-12
libs/node-tsc-js-cjs/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "declarationMap": true, 7 - "module": "NodeNext", 8 - "moduleResolution": "NodeNext", 9 - "outDir": "dist", 10 - "sourceMap": true 11 - } 12 - }
-31
libs/node-tsc-js-esm/package.json
··· 1 - { 2 - "name": "node-tsc-js-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (ESM), TypeScript Compiler CLI", 6 - "keywords": [ 7 - "esm", 8 - "javascript", 9 - "node", 10 - "tsc" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "tsc", 25 - "prepublint": "pnpm run build", 26 - "publint": "publint ." 27 - }, 28 - "devDependencies": { 29 - "typescript": "catalog:bundler" 30 - } 31 - }
-3
libs/node-tsc-js-esm/src/index.js
··· 1 - export function greet(name) { 2 - return `Hello ${name}` 3 - }
-12
libs/node-tsc-js-esm/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "declarationMap": true, 7 - "module": "NodeNext", 8 - "moduleResolution": "NodeNext", 9 - "outDir": "dist", 10 - "sourceMap": true 11 - } 12 - }
-32
libs/node-tsc-ts-esm/package.json
··· 1 - { 2 - "name": "node-tsc-ts-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, TypeScript (ESM), TypeScript Compiler CLI", 6 - "keywords": [ 7 - "esm", 8 - "node", 9 - "tsc", 10 - "typescript" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "module": "dist/index.js", 17 - "types": "dist/index.d.ts", 18 - "exports": { 19 - ".": { 20 - "types": "./dist/index.d.ts", 21 - "import": "./dist/index.js" 22 - } 23 - }, 24 - "scripts": { 25 - "build": "tsc", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "typescript": "catalog:bundler" 31 - } 32 - }
-3
libs/node-tsc-ts-esm/src/index.ts
··· 1 - export function greet(name: string) { 2 - return `Hello ${name}` 3 - }
-12
libs/node-tsc-ts-esm/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "declarationMap": true, 7 - "module": "NodeNext", 8 - "moduleResolution": "NodeNext", 9 - "outDir": "dist", 10 - "sourceMap": true 11 - } 12 - }
-32
libs/node-tsup-ts-esm/package.json
··· 1 - { 2 - "name": "node-tsup-ts-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, TypeScript (ESM), tsup", 6 - "keywords": [ 7 - "esm", 8 - "node", 9 - "tsup", 10 - "typescript" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "tsup src/index.ts --format esm --dts --minify", 25 - "prepublint": "pnpm run build", 26 - "publint": "publint ." 27 - }, 28 - "devDependencies": { 29 - "tsup": "catalog:bundler", 30 - "typescript": "catalog:bundler" 31 - } 32 - }
-3
libs/node-tsup-ts-esm/src/index.ts
··· 1 - export function greet(name: string) { 2 - return `Hello ${name}` 3 - }
-33
libs/node-vite-js-cjs/package.json
··· 1 - { 2 - "name": "node-vite-js-cjs", 3 - "version": "1.0.0", 4 - "description": "Node, JavaScript (CommonJS), Vite", 5 - "keywords": [ 6 - "commonjs", 7 - "javascript", 8 - "node", 9 - "vite" 10 - ], 11 - "files": [ 12 - "dist" 13 - ], 14 - "type": "commonjs", 15 - "main": "./dist/index.cjs", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "require": "./dist/index.cjs" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "vite build", 25 - "prepublint": "pnpm run build", 26 - "publint": "publint ." 27 - }, 28 - "devDependencies": { 29 - "typescript": "catalog:bundler", 30 - "vite": "catalog:bundler", 31 - "vite-plugin-dts": "catalog:bundler" 32 - } 33 - }
-7
libs/node-vite-js-cjs/src/index.js
··· 1 - /** 2 - * @param {string} name 3 - * @returns string 4 - */ 5 - exports.greet = function (name) { 6 - return `Hello ${name}` 7 - }
-10
libs/node-vite-js-cjs/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-17
libs/node-vite-js-cjs/vite.config.mjs
··· 1 - import { defineConfig } from 'vite' 2 - import dts from 'vite-plugin-dts' 3 - 4 - export default defineConfig({ 5 - build: { 6 - lib: { 7 - entry: new URL('src/index.js', import.meta.url).pathname, 8 - formats: ['cjs'], 9 - fileName: () => 'index.cjs', 10 - }, 11 - }, 12 - plugins: [ 13 - dts({ 14 - insertTypesEntry: true, 15 - }), 16 - ], 17 - })
-34
libs/node-vite-js-esm/package.json
··· 1 - { 2 - "name": "node-vite-js-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (ESM), Vite", 6 - "keywords": [ 7 - "esm", 8 - "javascript", 9 - "node", 10 - "vite" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.mjs" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "vite build", 25 - "prepublint": "pnpm run build", 26 - "publint": "publint ." 27 - }, 28 - "devDependencies": { 29 - "@types/node": "catalog:", 30 - "typescript": "catalog:bundler", 31 - "vite": "catalog:bundler", 32 - "vite-plugin-dts": "catalog:bundler" 33 - } 34 - }
-3
libs/node-vite-js-esm/src/index.js
··· 1 - export function greet(name) { 2 - return `Hello ${name}` 3 - }
-10
libs/node-vite-js-esm/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-17
libs/node-vite-js-esm/vite.config.js
··· 1 - import { defineConfig } from 'vite' 2 - import dts from 'vite-plugin-dts' 3 - 4 - export default defineConfig({ 5 - build: { 6 - lib: { 7 - entry: new URL('src/index.js', import.meta.url).pathname, 8 - formats: ['es'], 9 - fileName: () => 'index.mjs', 10 - }, 11 - }, 12 - plugins: [ 13 - dts({ 14 - insertTypesEntry: true, 15 - }), 16 - ], 17 - })
-34
libs/node-vite-ts-esm/package.json
··· 1 - { 2 - "name": "node-vite-ts-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, TypeScript (ESM), Vite", 6 - "keywords": [ 7 - "esm", 8 - "node", 9 - "typescript", 10 - "vite" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.mjs" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "vite build", 25 - "prepublint": "pnpm run build", 26 - "publint": "publint ." 27 - }, 28 - "devDependencies": { 29 - "@types/node": "catalog:", 30 - "typescript": "catalog:bundler", 31 - "vite": "catalog:bundler", 32 - "vite-plugin-dts": "catalog:bundler" 33 - } 34 - }
-3
libs/node-vite-ts-esm/src/index.ts
··· 1 - export function greet(name: string) { 2 - return `Hello ${name}` 3 - }
-22
libs/node-vite-ts-esm/tsconfig.json
··· 1 - { 2 - "include": ["./src"], 3 - "exclude": ["./dist/**/*"], 4 - "compilerOptions": { 5 - "composite": true, 6 - /* base options */ 7 - "esModuleInterop": true, 8 - "skipLibCheck": true, 9 - "allowJs": true, 10 - "resolveJsonModule": true, 11 - "verbatimModuleSyntax": true, 12 - "moduleDetection": "force", 13 - "lib": ["ES2022"], 14 - "target": "ES2022", 15 - "module": "ESNext", 16 - "moduleResolution": "Bundler", 17 - "isolatedModules": true, 18 - "sourceMap": true, 19 - "declaration": true, 20 - "declarationMap": true 21 - } 22 - }
-17
libs/node-vite-ts-esm/vite.config.ts
··· 1 - import { defineConfig } from 'vite' 2 - import dts from 'vite-plugin-dts' 3 - 4 - export default defineConfig({ 5 - build: { 6 - lib: { 7 - entry: new URL('src/index.ts', import.meta.url).pathname, 8 - formats: ['es'], 9 - fileName: () => 'index.mjs', 10 - }, 11 - }, 12 - plugins: [ 13 - dts({ 14 - insertTypesEntry: true, 15 - }), 16 - ], 17 - })
-35
libs/node-webpack-js-cjs/package.json
··· 1 - { 2 - "name": "node-webpack-js-cjs", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (CommonJS), Webpack", 6 - "keywords": [ 7 - "commonjs", 8 - "javascript", 9 - "node", 10 - "webpack" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "commonjs", 16 - "main": "./dist/bundle.js", 17 - "types": "./dist/index.d.ts", 18 - "exports": { 19 - ".": { 20 - "types": "./dist/index.d.ts", 21 - "require": "./dist/bundle.js" 22 - } 23 - }, 24 - "scripts": { 25 - "build": "webpack build --mode=production && pnpm run dts", 26 - "dts": "tsc", 27 - "prepublint": "pnpm run build", 28 - "publint": "publint ." 29 - }, 30 - "devDependencies": { 31 - "typescript": "catalog:bundler", 32 - "webpack": "catalog:bundler", 33 - "webpack-cli": "catalog:bundler" 34 - } 35 - }
-7
libs/node-webpack-js-cjs/src/index.js
··· 1 - /** 2 - * @param {string} name 3 - * @returns string 4 - */ 5 - exports.greet = function (name) { 6 - return `Hello ${name}` 7 - }
-10
libs/node-webpack-js-cjs/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-14
libs/node-webpack-js-cjs/webpack.config.js
··· 1 - const path = require('path') 2 - 3 - /** @type {import('webpack').Configuration} */ 4 - module.exports = { 5 - entry: './src/index.js', 6 - output: { 7 - path: path.resolve(__dirname, 'dist'), 8 - filename: 'bundle.js', 9 - library: { 10 - name: 'greeting', 11 - type: 'commonjs', 12 - }, 13 - }, 14 - }
-34
libs/node-webpack-js-esm/package.json
··· 1 - { 2 - "name": "node-webpack-js-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, JavaScript (ESM), Webpack", 6 - "keywords": [ 7 - "esm", 8 - "javascript", 9 - "node", 10 - "webpack" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "webpack --mode=production && pnpm run dts", 25 - "dts": "tsc", 26 - "prepublint": "pnpm run build", 27 - "publint": "publint ." 28 - }, 29 - "devDependencies": { 30 - "typescript": "catalog:bundler", 31 - "webpack": "catalog:bundler", 32 - "webpack-cli": "catalog:bundler" 33 - } 34 - }
-3
libs/node-webpack-js-esm/src/index.js
··· 1 - export function greet(name) { 2 - return `Hello ${name}` 3 - }
-10
libs/node-webpack-js-esm/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "declaration": true, 6 - "emitDeclarationOnly": true, 7 - "outDir": "dist", 8 - "declarationMap": true 9 - } 10 - }
-24
libs/node-webpack-js-esm/webpack.config.cjs
··· 1 - const path = require('path') 2 - const isProduction = process.env.NODE_ENV == 'production' 3 - 4 - /** @type {import('webpack').Configuration} */ 5 - const config = { 6 - experiments: { 7 - outputModule: true, 8 - }, 9 - devtool: 'inline-source-map', 10 - entry: './src/index.js', 11 - output: { 12 - path: path.resolve(__dirname, 'dist'), 13 - filename: 'index.js', 14 - clean: true, 15 - library: { 16 - type: 'module', 17 - }, 18 - }, 19 - } 20 - 21 - module.exports = () => { 22 - config.mode = isProduction ? 'production' : 'development' 23 - return config 24 - }
-34
libs/node-webpack-ts-esm/package.json
··· 1 - { 2 - "name": "node-webpack-ts-esm", 3 - "version": "1.0.0", 4 - "private": true, 5 - "description": "Node, TypeScript (ESM), Webpack", 6 - "keywords": [ 7 - "esm", 8 - "node", 9 - "typescript", 10 - "webpack" 11 - ], 12 - "files": [ 13 - "dist" 14 - ], 15 - "type": "module", 16 - "types": "./dist/index.d.ts", 17 - "exports": { 18 - ".": { 19 - "types": "./dist/index.d.ts", 20 - "import": "./dist/index.js" 21 - } 22 - }, 23 - "scripts": { 24 - "build": "webpack --mode=production", 25 - "prepublint": "pnpm run build", 26 - "publint": "publint ." 27 - }, 28 - "devDependencies": { 29 - "ts-loader": "catalog:bundler", 30 - "typescript": "catalog:bundler", 31 - "webpack": "catalog:bundler", 32 - "webpack-cli": "catalog:bundler" 33 - } 34 - }
-3
libs/node-webpack-ts-esm/src/index.ts
··· 1 - export function greet(name: string) { 2 - return `Hello ${name}` 3 - }
-12
libs/node-webpack-ts-esm/tsconfig.json
··· 1 - { 2 - "include": ["src"], 3 - "compilerOptions": { 4 - "outDir": "dist", 5 - "sourceMap": true, 6 - "esModuleInterop": true, 7 - "module": "ES2022", 8 - "moduleResolution": "Bundler", 9 - "declaration": true, 10 - "emitDeclarationOnly": false 11 - } 12 - }
-41
libs/node-webpack-ts-esm/webpack.config.cjs
··· 1 - const path = require('path') 2 - const isProduction = process.env.NODE_ENV == 'production' 3 - 4 - /** @type {import('webpack').Configuration} */ 5 - const config = { 6 - experiments: { 7 - outputModule: true, 8 - }, 9 - devtool: 'inline-source-map', 10 - entry: './src/index.ts', 11 - output: { 12 - path: path.resolve(__dirname, 'dist'), 13 - filename: 'index.js', 14 - clean: true, 15 - library: { 16 - type: 'module', 17 - }, 18 - }, 19 - module: { 20 - rules: [ 21 - { 22 - test: /\.([cm]?ts|tsx)$/, 23 - loader: 'ts-loader', 24 - exclude: ['/node_modules/'], 25 - }, 26 - ], 27 - }, 28 - resolve: { 29 - extensions: ['.tsx', '.ts', '.jsx', '.js'], 30 - extensionAlias: { 31 - '.js': ['.js', '.ts'], 32 - '.cjs': ['.cjs', '.cts'], 33 - '.mjs': ['.mjs', '.mts'], 34 - }, 35 - }, 36 - } 37 - 38 - module.exports = () => { 39 - config.mode = isProduction ? 'production' : 'development' 40 - return config 41 - }
+39
libs/parcel/node-parcel-js-cjs/package.json
··· 1 + { 2 + "name": "node-parcel-js-cjs", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (CommonJS), Parcel", 6 + "keywords": [ 7 + "commonjs", 8 + "javascript", 9 + "node", 10 + "parcel" 11 + ], 12 + "source": "src/index.js", 13 + "files": [ 14 + "dist" 15 + ], 16 + "type": "commonjs", 17 + "main": "dist/index.js", 18 + "types": "dist/index.d.ts", 19 + "exports": { 20 + ".": { 21 + "types": "./dist/index.d.ts", 22 + "require": "./dist/index.js" 23 + } 24 + }, 25 + "scripts": { 26 + "build": "parcel build --cache-dir ./.parcel-cache && pnpm run dts", 27 + "dev": "parcel watch --cache-dir ./.parcel-cache && pnpm run dts", 28 + "dts": "tsc", 29 + "prepublint": "pnpm run build", 30 + "publint": "publint ." 31 + }, 32 + "devDependencies": { 33 + "parcel": "catalog:bundler", 34 + "typescript": "catalog:bundler" 35 + }, 36 + "targets": { 37 + "types": false 38 + } 39 + }
+7
libs/parcel/node-parcel-js-cjs/src/index.js
··· 1 + /** 2 + * @param {string} name 3 + * @returns string 4 + */ 5 + exports.greet = function (name) { 6 + return `Hello ${name}` 7 + }
+10
libs/parcel/node-parcel-js-cjs/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+39
libs/parcel/node-parcel-js-esm/package.json
··· 1 + { 2 + "name": "node-parcel-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (ESM), Parcel", 6 + "keywords": [ 7 + "esm", 8 + "javascript", 9 + "node", 10 + "parcel" 11 + ], 12 + "source": "src/index.js", 13 + "files": [ 14 + "dist" 15 + ], 16 + "type": "module", 17 + "module": "dist/module.js", 18 + "types": "dist/index.d.ts", 19 + "exports": { 20 + ".": { 21 + "types": "./dist/index.d.ts", 22 + "import": "./dist/module.js" 23 + } 24 + }, 25 + "scripts": { 26 + "build": "parcel build --cache-dir ./.parcel-cache && pnpm run dts", 27 + "dev": "parcel watch --cache-dir ./.parcel-cache && pnpm run dts", 28 + "dts": "tsc", 29 + "prepublint": "pnpm run build", 30 + "publint": "publint ." 31 + }, 32 + "devDependencies": { 33 + "parcel": "catalog:bundler", 34 + "typescript": "catalog:bundler" 35 + }, 36 + "targets": { 37 + "types": false 38 + } 39 + }
+3
libs/parcel/node-parcel-js-esm/src/index.js
··· 1 + export function greet(name) { 2 + return `Hello ${name}` 3 + }
+10
libs/parcel/node-parcel-js-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+37
libs/parcel/node-parcel-ts-esm/package.json
··· 1 + { 2 + "name": "node-parcel-ts-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, TypeScript (ESM), Parcel", 6 + "keywords": [ 7 + "esm", 8 + "node", 9 + "parcel", 10 + "typescript" 11 + ], 12 + "source": "./src/index.ts", 13 + "files": [ 14 + "dist" 15 + ], 16 + "type": "module", 17 + "module": "./dist/module.js", 18 + "types": "./dist/types.d.ts", 19 + "exports": { 20 + ".": { 21 + "types": "./dist/types.d.ts", 22 + "import": "./dist/module.js" 23 + } 24 + }, 25 + "scripts": { 26 + "build": "parcel build --cache-dir ./.parcel-cache", 27 + "dev": "parcel watch --cache-dir ./.parcel-cache", 28 + "prepublint": "pnpm run build", 29 + "publint": "publint ." 30 + }, 31 + "devDependencies": { 32 + "@parcel/packager-ts": "catalog:bundler", 33 + "@parcel/transformer-typescript-types": "catalog:bundler", 34 + "parcel": "catalog:bundler", 35 + "typescript": "catalog:bundler" 36 + } 37 + }
+3
libs/parcel/node-parcel-ts-esm/src/index.ts
··· 1 + export function greet(name: string) { 2 + return `Hello ${name}` 3 + }
+37
libs/rollup/node-rollup-js-cjs/package.json
··· 1 + { 2 + "name": "node-rollup-js-cjs", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (CommonJS), Rollup", 6 + "keywords": [ 7 + "commonjs", 8 + "javascript", 9 + "node", 10 + "rollup" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "commonjs", 16 + "main": "./dist/index.js", 17 + "types": "./dist/index.d.ts", 18 + "exports": { 19 + ".": { 20 + "types": "./dist/index.d.ts", 21 + "require": "./dist/index.js" 22 + } 23 + }, 24 + "scripts": { 25 + "build": "pnpm run dts && rollup --config rollup.config.js", 26 + "dev": "pnpm run build -- -w", 27 + "dts": "tsc", 28 + "prepublint": "pnpm run build", 29 + "publint": "publint ." 30 + }, 31 + "devDependencies": { 32 + "@rollup/plugin-commonjs": "catalog:bundler", 33 + "@rollup/plugin-node-resolve": "catalog:bundler", 34 + "rollup": "catalog:bundler", 35 + "rollup-plugin-dts": "catalog:bundler" 36 + } 37 + }
+17
libs/rollup/node-rollup-js-cjs/rollup.config.js
··· 1 + const commonjs = require('@rollup/plugin-commonjs').default 2 + const { nodeResolve } = require('@rollup/plugin-node-resolve') 3 + const { defineConfig } = require('rollup') 4 + const { dts } = require('rollup-plugin-dts') 5 + 6 + module.exports = defineConfig([ 7 + { 8 + input: 'src/index.js', 9 + output: [{ file: 'dist/index.js', format: 'cjs', exports: 'named' }], 10 + plugins: [nodeResolve(), commonjs()], 11 + }, 12 + { 13 + input: 'src/index.js', 14 + output: [{ file: 'dist/index.d.ts', format: 'cjs' }], 15 + plugins: [dts()], 16 + }, 17 + ])
+7
libs/rollup/node-rollup-js-cjs/src/index.js
··· 1 + /** 2 + * @param {string} name 3 + * @returns string 4 + */ 5 + exports.greet = function (name) { 6 + return `Hello ${name}` 7 + }
+10
libs/rollup/node-rollup-js-cjs/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+35
libs/rollup/node-rollup-js-esm/package.json
··· 1 + { 2 + "name": "node-rollup-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (ESM), Rollup", 6 + "keywords": [ 7 + "esm", 8 + "javascript", 9 + "node", 10 + "rollup" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "rollup --config rollup.config.js", 25 + "dev": "pnpm run build -- -w", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "rollup": "catalog:bundler", 31 + "rollup-plugin-dts": "catalog:bundler", 32 + "tslib": "catalog:bundler", 33 + "typescript": "catalog:bundler" 34 + } 35 + }
+14
libs/rollup/node-rollup-js-esm/rollup.config.js
··· 1 + import { defineConfig } from 'rollup' 2 + import { dts } from 'rollup-plugin-dts' 3 + 4 + export default defineConfig([ 5 + { 6 + input: 'src/index.js', 7 + output: [{ file: 'dist/index.js', format: 'esm' }], 8 + }, 9 + { 10 + input: 'src/index.js', 11 + output: [{ file: 'dist/index.d.ts', format: 'esm' }], 12 + plugins: [dts()], 13 + }, 14 + ])
+3
libs/rollup/node-rollup-js-esm/src/index.js
··· 1 + export function greet(name) { 2 + return `Hello ${name}` 3 + }
+36
libs/rollup/node-rollup-ts-esm/package.json
··· 1 + { 2 + "name": "node-rollup-ts-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, TypeScript (ESM), Rollup", 6 + "keywords": [ 7 + "esm", 8 + "node", 9 + "rollup", 10 + "typescript" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "rollup --config rollup.config.ts --configPlugin typescript", 25 + "dev": "pnpm run build -- -w", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "@rollup/plugin-typescript": "catalog:bundler", 31 + "rollup": "catalog:bundler", 32 + "rollup-plugin-dts": "catalog:bundler", 33 + "tslib": "catalog:bundler", 34 + "typescript": "catalog:bundler" 35 + } 36 + }
+16
libs/rollup/node-rollup-ts-esm/rollup.config.ts
··· 1 + import typescript from '@rollup/plugin-typescript' 2 + import { defineConfig } from 'rollup' 3 + import { dts } from 'rollup-plugin-dts' 4 + 5 + export default defineConfig([ 6 + { 7 + input: 'src/index.ts', 8 + output: [{ file: 'dist/index.js', format: 'esm' }], 9 + plugins: [typescript()], 10 + }, 11 + { 12 + input: 'src/index.ts', 13 + output: [{ file: 'dist/index.d.ts', format: 'esm' }], 14 + plugins: [dts()], 15 + }, 16 + ])
+3
libs/rollup/node-rollup-ts-esm/src/index.ts
··· 1 + export function greet(name: string) { 2 + return `Hello ${name}` 3 + }
+32
libs/tsc/node-tsc-js-cjs/package.json
··· 1 + { 2 + "name": "node-tsc-js-cjs", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (CommonJS), TypeScript Compiler CLI", 6 + "keywords": [ 7 + "commonjs", 8 + "javascript", 9 + "node", 10 + "tsc" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "commonjs", 16 + "main": "dist/index.js", 17 + "types": "dist/index.d.ts", 18 + "exports": { 19 + ".": { 20 + "types": "./dist/index.d.ts", 21 + "require": "./dist/index.js" 22 + } 23 + }, 24 + "scripts": { 25 + "build": "tsc", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "typescript": "catalog:bundler" 31 + } 32 + }
+7
libs/tsc/node-tsc-js-cjs/src/index.js
··· 1 + /** 2 + * @param {string} name 3 + * @returns string 4 + */ 5 + exports.greet = function (name) { 6 + return `Hello ${name}` 7 + }
+12
libs/tsc/node-tsc-js-cjs/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "declarationMap": true, 7 + "module": "NodeNext", 8 + "moduleResolution": "NodeNext", 9 + "outDir": "dist", 10 + "sourceMap": true 11 + } 12 + }
+31
libs/tsc/node-tsc-js-esm/package.json
··· 1 + { 2 + "name": "node-tsc-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (ESM), TypeScript Compiler CLI", 6 + "keywords": [ 7 + "esm", 8 + "javascript", 9 + "node", 10 + "tsc" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "tsc", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "typescript": "catalog:bundler" 30 + } 31 + }
+3
libs/tsc/node-tsc-js-esm/src/index.js
··· 1 + export function greet(name) { 2 + return `Hello ${name}` 3 + }
+12
libs/tsc/node-tsc-js-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "declarationMap": true, 7 + "module": "NodeNext", 8 + "moduleResolution": "NodeNext", 9 + "outDir": "dist", 10 + "sourceMap": true 11 + } 12 + }
+32
libs/tsc/node-tsc-ts-esm/package.json
··· 1 + { 2 + "name": "node-tsc-ts-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, TypeScript (ESM), TypeScript Compiler CLI", 6 + "keywords": [ 7 + "esm", 8 + "node", 9 + "tsc", 10 + "typescript" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "module": "dist/index.js", 17 + "types": "dist/index.d.ts", 18 + "exports": { 19 + ".": { 20 + "types": "./dist/index.d.ts", 21 + "import": "./dist/index.js" 22 + } 23 + }, 24 + "scripts": { 25 + "build": "tsc", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "typescript": "catalog:bundler" 31 + } 32 + }
+3
libs/tsc/node-tsc-ts-esm/src/index.ts
··· 1 + export function greet(name: string) { 2 + return `Hello ${name}` 3 + }
+12
libs/tsc/node-tsc-ts-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "declarationMap": true, 7 + "module": "NodeNext", 8 + "moduleResolution": "NodeNext", 9 + "outDir": "dist", 10 + "sourceMap": true 11 + } 12 + }
+32
libs/tsup/node-tsup-js-cjs/package.json
··· 1 + { 2 + "name": "node-tsup-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (CJS), tsup", 6 + "keywords": [ 7 + "commonjs", 8 + "javascript", 9 + "node", 10 + "tsup" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "commonjs", 16 + "types": "dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "tsup src/index.js --format cjs --dts --minify", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "tsup": "catalog:bundler", 30 + "typescript": "catalog:bundler" 31 + } 32 + }
+7
libs/tsup/node-tsup-js-cjs/src/index.js
··· 1 + /** 2 + * @param {string} name 3 + * @returns string 4 + */ 5 + exports.greet = function (name) { 6 + return `Hello ${name}` 7 + }
+12
libs/tsup/node-tsup-js-cjs/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "declarationMap": true, 7 + "module": "NodeNext", 8 + "moduleResolution": "NodeNext", 9 + "outDir": "dist", 10 + "sourceMap": true 11 + } 12 + }
+32
libs/tsup/node-tsup-js-esm/package.json
··· 1 + { 2 + "name": "node-tsup-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (ESM), tsup", 6 + "keywords": [ 7 + "esm", 8 + "javascript", 9 + "node", 10 + "tsup" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "tsup src/index.js --format esm --dts --minify", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "tsup": "catalog:bundler", 30 + "typescript": "catalog:bundler" 31 + } 32 + }
+3
libs/tsup/node-tsup-js-esm/src/index.js
··· 1 + export function greet(name) { 2 + return `Hello ${name}` 3 + }
+10
libs/tsup/node-tsup-js-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+32
libs/tsup/node-tsup-ts-esm/package.json
··· 1 + { 2 + "name": "node-tsup-ts-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, TypeScript (ESM), tsup", 6 + "keywords": [ 7 + "esm", 8 + "node", 9 + "tsup", 10 + "typescript" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "tsup src/index.ts --format esm --dts --minify", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "tsup": "catalog:bundler", 30 + "typescript": "catalog:bundler" 31 + } 32 + }
+3
libs/tsup/node-tsup-ts-esm/src/index.ts
··· 1 + export function greet(name: string) { 2 + return `Hello ${name}` 3 + }
+33
libs/vite/node-vite-js-cjs/package.json
··· 1 + { 2 + "name": "node-vite-js-cjs", 3 + "version": "1.0.0", 4 + "description": "Node, JavaScript (CommonJS), Vite", 5 + "keywords": [ 6 + "commonjs", 7 + "javascript", 8 + "node", 9 + "vite" 10 + ], 11 + "files": [ 12 + "dist" 13 + ], 14 + "type": "commonjs", 15 + "main": "./dist/index.cjs", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "require": "./dist/index.cjs" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "vite build", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "typescript": "catalog:bundler", 30 + "vite": "catalog:bundler", 31 + "vite-plugin-dts": "catalog:bundler" 32 + } 33 + }
+7
libs/vite/node-vite-js-cjs/src/index.js
··· 1 + /** 2 + * @param {string} name 3 + * @returns string 4 + */ 5 + exports.greet = function (name) { 6 + return `Hello ${name}` 7 + }
+10
libs/vite/node-vite-js-cjs/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+17
libs/vite/node-vite-js-cjs/vite.config.mjs
··· 1 + import { defineConfig } from 'vite' 2 + import dts from 'vite-plugin-dts' 3 + 4 + export default defineConfig({ 5 + build: { 6 + lib: { 7 + entry: new URL('src/index.js', import.meta.url).pathname, 8 + formats: ['cjs'], 9 + fileName: () => 'index.cjs', 10 + }, 11 + }, 12 + plugins: [ 13 + dts({ 14 + insertTypesEntry: true, 15 + }), 16 + ], 17 + })
+34
libs/vite/node-vite-js-esm/package.json
··· 1 + { 2 + "name": "node-vite-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (ESM), Vite", 6 + "keywords": [ 7 + "esm", 8 + "javascript", 9 + "node", 10 + "vite" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.mjs" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "vite build", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "@types/node": "catalog:", 30 + "typescript": "catalog:bundler", 31 + "vite": "catalog:bundler", 32 + "vite-plugin-dts": "catalog:bundler" 33 + } 34 + }
+3
libs/vite/node-vite-js-esm/src/index.js
··· 1 + export function greet(name) { 2 + return `Hello ${name}` 3 + }
+10
libs/vite/node-vite-js-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+17
libs/vite/node-vite-js-esm/vite.config.js
··· 1 + import { defineConfig } from 'vite' 2 + import dts from 'vite-plugin-dts' 3 + 4 + export default defineConfig({ 5 + build: { 6 + lib: { 7 + entry: new URL('src/index.js', import.meta.url).pathname, 8 + formats: ['es'], 9 + fileName: () => 'index.mjs', 10 + }, 11 + }, 12 + plugins: [ 13 + dts({ 14 + insertTypesEntry: true, 15 + }), 16 + ], 17 + })
+34
libs/vite/node-vite-ts-esm/package.json
··· 1 + { 2 + "name": "node-vite-ts-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, TypeScript (ESM), Vite", 6 + "keywords": [ 7 + "esm", 8 + "node", 9 + "typescript", 10 + "vite" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.mjs" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "vite build", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "@types/node": "catalog:", 30 + "typescript": "catalog:bundler", 31 + "vite": "catalog:bundler", 32 + "vite-plugin-dts": "catalog:bundler" 33 + } 34 + }
+3
libs/vite/node-vite-ts-esm/src/index.ts
··· 1 + export function greet(name: string) { 2 + return `Hello ${name}` 3 + }
+22
libs/vite/node-vite-ts-esm/tsconfig.json
··· 1 + { 2 + "include": ["./src"], 3 + "exclude": ["./dist/**/*"], 4 + "compilerOptions": { 5 + "composite": true, 6 + /* base options */ 7 + "esModuleInterop": true, 8 + "skipLibCheck": true, 9 + "allowJs": true, 10 + "resolveJsonModule": true, 11 + "verbatimModuleSyntax": true, 12 + "moduleDetection": "force", 13 + "lib": ["ES2022"], 14 + "target": "ES2022", 15 + "module": "ESNext", 16 + "moduleResolution": "Bundler", 17 + "isolatedModules": true, 18 + "sourceMap": true, 19 + "declaration": true, 20 + "declarationMap": true 21 + } 22 + }
+17
libs/vite/node-vite-ts-esm/vite.config.ts
··· 1 + import { defineConfig } from 'vite' 2 + import dts from 'vite-plugin-dts' 3 + 4 + export default defineConfig({ 5 + build: { 6 + lib: { 7 + entry: new URL('src/index.ts', import.meta.url).pathname, 8 + formats: ['es'], 9 + fileName: () => 'index.mjs', 10 + }, 11 + }, 12 + plugins: [ 13 + dts({ 14 + insertTypesEntry: true, 15 + }), 16 + ], 17 + })
+35
libs/webpack/node-webpack-js-cjs/package.json
··· 1 + { 2 + "name": "node-webpack-js-cjs", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (CommonJS), Webpack", 6 + "keywords": [ 7 + "commonjs", 8 + "javascript", 9 + "node", 10 + "webpack" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "commonjs", 16 + "main": "./dist/bundle.js", 17 + "types": "./dist/index.d.ts", 18 + "exports": { 19 + ".": { 20 + "types": "./dist/index.d.ts", 21 + "require": "./dist/bundle.js" 22 + } 23 + }, 24 + "scripts": { 25 + "build": "webpack build --mode=production && pnpm run dts", 26 + "dts": "tsc", 27 + "prepublint": "pnpm run build", 28 + "publint": "publint ." 29 + }, 30 + "devDependencies": { 31 + "typescript": "catalog:bundler", 32 + "webpack": "catalog:bundler", 33 + "webpack-cli": "catalog:bundler" 34 + } 35 + }
+7
libs/webpack/node-webpack-js-cjs/src/index.js
··· 1 + /** 2 + * @param {string} name 3 + * @returns string 4 + */ 5 + exports.greet = function (name) { 6 + return `Hello ${name}` 7 + }
+10
libs/webpack/node-webpack-js-cjs/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+14
libs/webpack/node-webpack-js-cjs/webpack.config.js
··· 1 + const path = require('path') 2 + 3 + /** @type {import('webpack').Configuration} */ 4 + module.exports = { 5 + entry: './src/index.js', 6 + output: { 7 + path: path.resolve(__dirname, 'dist'), 8 + filename: 'bundle.js', 9 + library: { 10 + name: 'greeting', 11 + type: 'commonjs', 12 + }, 13 + }, 14 + }
+34
libs/webpack/node-webpack-js-esm/package.json
··· 1 + { 2 + "name": "node-webpack-js-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, JavaScript (ESM), Webpack", 6 + "keywords": [ 7 + "esm", 8 + "javascript", 9 + "node", 10 + "webpack" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "webpack --mode=production && pnpm run dts", 25 + "dts": "tsc", 26 + "prepublint": "pnpm run build", 27 + "publint": "publint ." 28 + }, 29 + "devDependencies": { 30 + "typescript": "catalog:bundler", 31 + "webpack": "catalog:bundler", 32 + "webpack-cli": "catalog:bundler" 33 + } 34 + }
+3
libs/webpack/node-webpack-js-esm/src/index.js
··· 1 + export function greet(name) { 2 + return `Hello ${name}` 3 + }
+10
libs/webpack/node-webpack-js-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "declaration": true, 6 + "emitDeclarationOnly": true, 7 + "outDir": "dist", 8 + "declarationMap": true 9 + } 10 + }
+24
libs/webpack/node-webpack-js-esm/webpack.config.cjs
··· 1 + const path = require('path') 2 + const isProduction = process.env.NODE_ENV == 'production' 3 + 4 + /** @type {import('webpack').Configuration} */ 5 + const config = { 6 + experiments: { 7 + outputModule: true, 8 + }, 9 + devtool: 'inline-source-map', 10 + entry: './src/index.js', 11 + output: { 12 + path: path.resolve(__dirname, 'dist'), 13 + filename: 'index.js', 14 + clean: true, 15 + library: { 16 + type: 'module', 17 + }, 18 + }, 19 + } 20 + 21 + module.exports = () => { 22 + config.mode = isProduction ? 'production' : 'development' 23 + return config 24 + }
+34
libs/webpack/node-webpack-ts-esm/package.json
··· 1 + { 2 + "name": "node-webpack-ts-esm", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Node, TypeScript (ESM), Webpack", 6 + "keywords": [ 7 + "esm", 8 + "node", 9 + "typescript", 10 + "webpack" 11 + ], 12 + "files": [ 13 + "dist" 14 + ], 15 + "type": "module", 16 + "types": "./dist/index.d.ts", 17 + "exports": { 18 + ".": { 19 + "types": "./dist/index.d.ts", 20 + "import": "./dist/index.js" 21 + } 22 + }, 23 + "scripts": { 24 + "build": "webpack --mode=production", 25 + "prepublint": "pnpm run build", 26 + "publint": "publint ." 27 + }, 28 + "devDependencies": { 29 + "ts-loader": "catalog:bundler", 30 + "typescript": "catalog:bundler", 31 + "webpack": "catalog:bundler", 32 + "webpack-cli": "catalog:bundler" 33 + } 34 + }
+3
libs/webpack/node-webpack-ts-esm/src/index.ts
··· 1 + export function greet(name: string) { 2 + return `Hello ${name}` 3 + }
+12
libs/webpack/node-webpack-ts-esm/tsconfig.json
··· 1 + { 2 + "include": ["src"], 3 + "compilerOptions": { 4 + "outDir": "dist", 5 + "sourceMap": true, 6 + "esModuleInterop": true, 7 + "module": "ES2022", 8 + "moduleResolution": "Bundler", 9 + "declaration": true, 10 + "emitDeclarationOnly": false 11 + } 12 + }
+41
libs/webpack/node-webpack-ts-esm/webpack.config.cjs
··· 1 + const path = require('path') 2 + const isProduction = process.env.NODE_ENV == 'production' 3 + 4 + /** @type {import('webpack').Configuration} */ 5 + const config = { 6 + experiments: { 7 + outputModule: true, 8 + }, 9 + devtool: 'inline-source-map', 10 + entry: './src/index.ts', 11 + output: { 12 + path: path.resolve(__dirname, 'dist'), 13 + filename: 'index.js', 14 + clean: true, 15 + library: { 16 + type: 'module', 17 + }, 18 + }, 19 + module: { 20 + rules: [ 21 + { 22 + test: /\.([cm]?ts|tsx)$/, 23 + loader: 'ts-loader', 24 + exclude: ['/node_modules/'], 25 + }, 26 + ], 27 + }, 28 + resolve: { 29 + extensions: ['.tsx', '.ts', '.jsx', '.js'], 30 + extensionAlias: { 31 + '.js': ['.js', '.ts'], 32 + '.cjs': ['.cjs', '.cts'], 33 + '.mjs': ['.mjs', '.mts'], 34 + }, 35 + }, 36 + } 37 + 38 + module.exports = () => { 39 + config.mode = isProduction ? 'production' : 'development' 40 + return config 41 + }
+7 -6
package.json
··· 8 8 "type": "module", 9 9 "scripts": { 10 10 "build": "pnpm run --r --if-present build", 11 - "build-esbuild": "pnpm --filter './libs/node-esbuild-*' build", 12 - "build-parcel": "pnpm --filter './libs/node-parcel-*' build", 13 - "build-rollup": "pnpm --filter './libs/node-rollup-*' build", 14 - "build-tsc": "pnpm --filter './libs/node-tsc-*' build", 15 - "build-vite": "pnpm --filter './libs/node-vite-*' build", 16 - "build-webpack": "pnpm --filter './libs/node-webpack-*' build", 11 + "build-esbuild": "pnpm --filter './libs/esbuild/*' build", 12 + "build-parcel": "pnpm --filter './libs/parcel/*' build", 13 + "build-rollup": "pnpm --filter './libs/rollup/*' build", 14 + "build-tsc": "pnpm --filter './libs/tsc/*' build", 15 + "build-tsup": "pnpm --filter './libs/tsup/*' build", 16 + "build-vite": "pnpm --filter './libs/vite/*' build", 17 + "build-webpack": "pnpm --filter './libs/webpack/*' build", 17 18 "fmt": "oxfmt", 18 19 "fmt-ci": "oxfmt --check", 19 20 "lint": "oxlint --type-aware --type-check",
+37 -19
pnpm-lock.yaml
··· 113 113 specifier: catalog:bundler 114 114 version: 5.9.3 115 115 116 - libs/node-esbuild-js-cjs: 116 + libs/esbuild/node-esbuild-js-cjs: 117 117 devDependencies: 118 118 esbuild: 119 119 specifier: catalog:bundler ··· 122 122 specifier: catalog:bundler 123 123 version: 5.9.3 124 124 125 - libs/node-esbuild-js-esm: 125 + libs/esbuild/node-esbuild-js-esm: 126 126 devDependencies: 127 127 esbuild: 128 128 specifier: catalog:bundler ··· 131 131 specifier: catalog:bundler 132 132 version: 5.9.3 133 133 134 - libs/node-esbuild-ts-esm: 134 + libs/esbuild/node-esbuild-ts-esm: 135 135 devDependencies: 136 136 esbuild: 137 137 specifier: catalog:bundler ··· 140 140 specifier: catalog:bundler 141 141 version: 5.9.3 142 142 143 - libs/node-parcel-js-cjs: 143 + libs/parcel/node-parcel-js-cjs: 144 144 devDependencies: 145 145 parcel: 146 146 specifier: catalog:bundler ··· 149 149 specifier: catalog:bundler 150 150 version: 5.9.3 151 151 152 - libs/node-parcel-js-esm: 152 + libs/parcel/node-parcel-js-esm: 153 153 devDependencies: 154 154 parcel: 155 155 specifier: catalog:bundler ··· 158 158 specifier: catalog:bundler 159 159 version: 5.9.3 160 160 161 - libs/node-parcel-ts-esm: 161 + libs/parcel/node-parcel-ts-esm: 162 162 devDependencies: 163 163 '@parcel/packager-ts': 164 164 specifier: catalog:bundler ··· 173 173 specifier: catalog:bundler 174 174 version: 5.9.3 175 175 176 - libs/node-rollup-js-cjs: 176 + libs/rollup/node-rollup-js-cjs: 177 177 devDependencies: 178 178 '@rollup/plugin-commonjs': 179 179 specifier: catalog:bundler ··· 188 188 specifier: catalog:bundler 189 189 version: 6.3.0(rollup@4.31.0)(typescript@5.9.3) 190 190 191 - libs/node-rollup-js-esm: 191 + libs/rollup/node-rollup-js-esm: 192 192 devDependencies: 193 193 rollup: 194 194 specifier: catalog:bundler ··· 203 203 specifier: catalog:bundler 204 204 version: 5.9.3 205 205 206 - libs/node-rollup-ts-esm: 206 + libs/rollup/node-rollup-ts-esm: 207 207 devDependencies: 208 208 '@rollup/plugin-typescript': 209 209 specifier: catalog:bundler ··· 221 221 specifier: catalog:bundler 222 222 version: 5.9.3 223 223 224 - libs/node-tsc-js-cjs: 224 + libs/tsc/node-tsc-js-cjs: 225 225 devDependencies: 226 226 typescript: 227 227 specifier: catalog:bundler 228 228 version: 5.9.3 229 229 230 - libs/node-tsc-js-esm: 230 + libs/tsc/node-tsc-js-esm: 231 231 devDependencies: 232 232 typescript: 233 233 specifier: catalog:bundler 234 234 version: 5.9.3 235 235 236 - libs/node-tsc-ts-esm: 236 + libs/tsc/node-tsc-ts-esm: 237 237 devDependencies: 238 238 typescript: 239 239 specifier: catalog:bundler 240 240 version: 5.9.3 241 241 242 - libs/node-tsup-ts-esm: 242 + libs/tsup/node-tsup-js-cjs: 243 243 devDependencies: 244 244 tsup: 245 245 specifier: catalog:bundler ··· 248 248 specifier: catalog:bundler 249 249 version: 5.9.3 250 250 251 - libs/node-vite-js-cjs: 251 + libs/tsup/node-tsup-js-esm: 252 + devDependencies: 253 + tsup: 254 + specifier: catalog:bundler 255 + version: 8.5.1(@microsoft/api-extractor@7.55.2(@types/node@25.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.18))(jiti@2.6.1)(postcss@8.5.6)(typescript@5.9.3) 256 + typescript: 257 + specifier: catalog:bundler 258 + version: 5.9.3 259 + 260 + libs/tsup/node-tsup-ts-esm: 261 + devDependencies: 262 + tsup: 263 + specifier: catalog:bundler 264 + version: 8.5.1(@microsoft/api-extractor@7.55.2(@types/node@25.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.18))(jiti@2.6.1)(postcss@8.5.6)(typescript@5.9.3) 265 + typescript: 266 + specifier: catalog:bundler 267 + version: 5.9.3 268 + 269 + libs/vite/node-vite-js-cjs: 252 270 devDependencies: 253 271 typescript: 254 272 specifier: catalog:bundler ··· 260 278 specifier: catalog:bundler 261 279 version: 4.5.4(@types/node@25.0.3)(rollup@4.54.0)(typescript@5.9.3)(vite@6.4.1(@types/node@25.0.3)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.1)) 262 280 263 - libs/node-vite-js-esm: 281 + libs/vite/node-vite-js-esm: 264 282 devDependencies: 265 283 '@types/node': 266 284 specifier: 'catalog:' ··· 275 293 specifier: catalog:bundler 276 294 version: 4.5.4(@types/node@22.19.3)(rollup@4.54.0)(typescript@5.9.3)(vite@6.4.1(@types/node@22.19.3)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.1)) 277 295 278 - libs/node-vite-ts-esm: 296 + libs/vite/node-vite-ts-esm: 279 297 devDependencies: 280 298 '@types/node': 281 299 specifier: 'catalog:' ··· 290 308 specifier: catalog:bundler 291 309 version: 4.5.4(@types/node@22.19.3)(rollup@4.54.0)(typescript@5.9.3)(vite@6.4.1(@types/node@22.19.3)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.1)) 292 310 293 - libs/node-webpack-js-cjs: 311 + libs/webpack/node-webpack-js-cjs: 294 312 devDependencies: 295 313 typescript: 296 314 specifier: catalog:bundler ··· 302 320 specifier: catalog:bundler 303 321 version: 6.0.1(webpack@5.104.1) 304 322 305 - libs/node-webpack-js-esm: 323 + libs/webpack/node-webpack-js-esm: 306 324 devDependencies: 307 325 typescript: 308 326 specifier: catalog:bundler ··· 314 332 specifier: catalog:bundler 315 333 version: 6.0.1(webpack@5.104.1) 316 334 317 - libs/node-webpack-ts-esm: 335 + libs/webpack/node-webpack-ts-esm: 318 336 devDependencies: 319 337 ts-loader: 320 338 specifier: catalog:bundler
+7 -1
pnpm-workspace.yaml
··· 1 1 packages: 2 - - libs/* 2 + - libs/esbuild/* 3 + - libs/parcel/* 4 + - libs/rollup/* 5 + - libs/tsc/* 6 + - libs/tsup/* 7 + - libs/vite/* 8 + - libs/webpack/* 3 9 4 10 catalog: 5 11 '@types/node': ^22.10.7

History

1 round 0 comments