Compare commits

5 Commits
master ... main

Author SHA1 Message Date
ebbc54d8db Add README.md 2025-06-24 15:44:42 +00:00
2ba0ffc78b bug: quaternion? 2025-06-07 23:02:21 +09:00
6e09946bf1 bug: quaternion? 2025-06-07 22:51:11 +09:00
a143e69796 fix: version 2025-06-07 13:32:39 +09:00
74b6110ec4 fix: types 2025-06-07 13:27:06 +09:00
4 changed files with 15 additions and 13 deletions

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# computercraft-vs
ComputerCraft-TS API definition for Valkyrien Skies

View File

@@ -1,23 +1,18 @@
{ {
"name": "computercraft-vs", "name": "computercraft-vs",
"version": "1.0.0", "version": "1.0.4",
"description": "", "description": "",
"license": "ISC", "license": "ISC",
"author": "", "author": "",
"type": "commonjs", "type": "commonjs",
"types": "./types/index.d.ts", "types": "types/index.d.ts",
"main": "./dist/main", "main": "index.js",
"files": [
"dist/**/*.lua",
"dist/**/*.d.ts"
],
"scripts": { "scripts": {
"build": "tstl" "build": "tstl"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.27.0", "@eslint/js": "^9.27.0",
"@typescript-to-lua/language-extensions": "^1.19.0", "@typescript-to-lua/language-extensions": "^1.19.0",
"computercraft-ts": "latest",
"eslint": "^9.27.0", "eslint": "^9.27.0",
"globals": "^16.2.0", "globals": "^16.2.0",
"luamin": "^1.0.4", "luamin": "^1.0.4",

View File

@@ -4,16 +4,17 @@
"target": "ESNext", "target": "ESNext",
"lib": ["ESNext"], "lib": ["ESNext"],
"moduleResolution": "Node", "moduleResolution": "Node",
"types": ["computercraft-ts", "@typescript-to-lua/language-extensions"], "types": ["./types/index", "@typescript-to-lua/language-extensions"],
"plugins": [{ "name": "typescript-tstl-plugin" }],
"strict": true, "strict": true,
"declaration": true,
"outDir": "dist/", "outDir": "dist/",
"rootDir": "src/",
"noImplicitAny": false "noImplicitAny": false
}, },
"tstl": { "tstl": {
"luaTarget": "JIT", "luaTarget": "5.4",
"buildMode": "library", "noHeader": true,
"luaBundle": "bundle.lua",
"luaBundleEntry": "src/main.ts",
"noImplicitSelf": true "noImplicitSelf": true
}, },
"include": ["src/**/*"] "include": ["src/**/*"]

3
types/index.d.ts vendored
View File

@@ -1,5 +1,8 @@
/** @noSelfInFile */
export {}; export {};
/** @noSelf */
declare global { declare global {
type ShipVec3 = { x: number; y: number; z: number }; type ShipVec3 = { x: number; y: number; z: number };
type ShipQuaternion = { x: number; y: number; z: number; w: number }; type ShipQuaternion = { x: number; y: number; z: number; w: number };