Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
dist/
dist-cjs/
*.log
.DS_Store
*.tsbuildinfo
Expand Down
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,29 @@
"name": "@fly/sprites",
"version": "0.0.1-dev",
"description": "JavaScript/TypeScript SDK for Sprites - remote command execution",
"main": "dist/index.js",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
}
},
"engines": {
"node": ">=24.0.0"
},
"scripts": {
"build": "tsc",
"build:esm": "tsc",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm run clean && npm run build:esm && npm run build:cjs && cp dist-cjs/index.js dist/index.cjs",
"watch": "tsc --watch",
"test": "npm run build && node --test dist/**/*.test.js",
"test:unit": "npm run build && node --test dist/exec.test.js",
"test:integration": "npm run build && node --test dist/integration.test.js",
"clean": "rm -rf dist",
"clean": "rm -rf dist dist-cjs",
"prepublishOnly": "npm run clean && npm run build"
},
"keywords": [
Expand All @@ -43,6 +47,7 @@
},
"files": [
"dist/**/*.js",
"dist/**/*.cjs",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"!dist/**/*.test.*",
Expand All @@ -54,4 +59,3 @@
"typescript": "^5.6.0"
}
}

8 changes: 8 additions & 0 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"outDir": "dist-cjs",
}
}