mirror of
https://github.com/jwetzell/free-d-js.git
synced 2026-07-26 10:28:44 +00:00
remove tsdown
This commit is contained in:
Generated
+867
File diff suppressed because it is too large
Load Diff
@@ -2,22 +2,19 @@
|
||||
"name": "@jwetzell/free-d",
|
||||
"version": "0.1.0",
|
||||
"description": "libray for encoding/decoding free-d messages",
|
||||
"main": "./dist/cjs/index.js",
|
||||
"module": "./dist/esm/index.js",
|
||||
"types": "./dist/types/index.d.ts",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.cts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/esm/index.js",
|
||||
"require": "./dist/cjs/index.js",
|
||||
"types": "./dist/types/index.d.ts"
|
||||
}
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
|
||||
"build:cjs": "tsc -p tsconfig.cjs.json",
|
||||
"build:esm": "tsc -p tsconfig.esm.json",
|
||||
"build:types": "tsc -p tsconfig.types.json",
|
||||
"build": "tsdown",
|
||||
"prepublishOnly": "npm run build",
|
||||
"pretest": "npm run build",
|
||||
"test": "node --test --experimental-test-coverage"
|
||||
@@ -38,6 +35,7 @@
|
||||
"devDependencies": {
|
||||
"@types/node": "25.8.0",
|
||||
"rimraf": "6.1.3",
|
||||
"tsdown": "0.22.1",
|
||||
"typescript": "5.9.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FreeDPosition, FreeDMessageType } from './types';
|
||||
import { type FreeDPosition, FreeDMessageType } from './types';
|
||||
import { checksum, freeDUnitsToPosition, freeDUnitsToRotation } from './utils';
|
||||
|
||||
function bytesToPositionMessage(bytes: Uint8Array): FreeDPosition {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FreeDPosition, FreeDMessageType } from './types';
|
||||
import { type FreeDPosition, FreeDMessageType } from './types';
|
||||
import { checksum, positionToFreeDUnits, rotationToFreeDUnits } from './utils';
|
||||
|
||||
function positionMessageToBytes(message: FreeDPosition): Uint8Array {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { deepEqual, throws } = require('assert');
|
||||
const { describe, it } = require('node:test');
|
||||
const { decode } = require('../dist/cjs');
|
||||
const { decode } = require('@jwetzell/free-d');
|
||||
|
||||
const goodTests = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { deepEqual, throws } = require('assert');
|
||||
const { describe, it } = require('node:test');
|
||||
const { encode } = require('../dist/cjs');
|
||||
const { encode } = require('@jwetzell/free-d');
|
||||
|
||||
const goodTests = [
|
||||
{
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"declaration": false,
|
||||
"outDir": "./dist/cjs"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"declaration": false,
|
||||
"outDir": "./dist/esm"
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "Node",
|
||||
"lib": ["ESNext"],
|
||||
"target": "ESNext",
|
||||
"target": "esnext",
|
||||
"lib": ["es2023"],
|
||||
"moduleDetection": "force",
|
||||
"module": "preserve",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"types": ["node"],
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"esModuleInterop": true,
|
||||
"isolatedModules": true,
|
||||
"rootDir": "src",
|
||||
"strict": true
|
||||
"verbatimModuleSyntax": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"outDir": "./dist/types"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { defineConfig } from 'tsdown'
|
||||
|
||||
export default defineConfig({
|
||||
entry: 'src/index.ts',
|
||||
exports: true,
|
||||
format: {
|
||||
esm: {},
|
||||
cjs: {},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user