[chore] preinstall,postinstall

This commit is contained in:
Anton Nesterov 2024-08-20 19:23:09 +02:00
parent b763c52867
commit c100564e0a
No known key found for this signature in database
GPG key ID: 59121E8AE2851FB5
9 changed files with 21 additions and 19 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -1,25 +1,26 @@
{ {
"name": "dal", "name": "@nesterow/dal",
"module": "dal/index.ts", "module": "dist/index.js",
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@types/bun": "latest", "@types/bun": "latest",
"node-addon-api": "^8.1.0",
"node-gyp": "^10.2.0",
"prettier": "^3.3.3" "prettier": "^3.3.3"
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "^5.0.0" "typescript": "^5.0.0"
}, },
"dependencies": { "dependencies": {
"@msgpack/msgpack": "^3.0.0-beta2" "@msgpack/msgpack": "^3.0.0-beta2",
"node-addon-api": "^8.1.0",
"node-gyp": "^10.2.0"
}, },
"scripts": { "scripts": {
"test:client": "bun test:*", "test:client": "bun test:*",
"test:dal": "bun test dal/__test__", "test:dal": "bun test dal/__test__",
"test:serve": "cd dal/__test__/srv && go run main.go", "test:serve": "cd dal/__test__/srv && go run main.go",
"fmt": "prettier --write .", "fmt": "prettier --write .",
"build": "tsc",
"preinstall": "cd binding && go build -buildmode=c-archive -o dal.a ./dal.go", "preinstall": "cd binding && go build -buildmode=c-archive -o dal.a ./dal.go",
"cgo:build": "node-gyp configure build" "postinstall": "node-gyp configure build"
} }
} }

View file

@ -1,4 +1,4 @@
module github.com/nesterow/dal/pkg/adapter module github.com/nesterow/dal/pkg/adapter/v0.0.0
go 1.22.6 go 1.22.6

View file

@ -1,4 +1,4 @@
module github.com/nesterow/dal/pkg/builder module github.com/nesterow/dal/pkg/builder/v0.0.0
go 1.22.6 go 1.22.6

View file

@ -1,4 +1,4 @@
module github.com/nesterow/dal/pkg/facade module github.com/nesterow/dal/pkg/facade/v0.0.0
go 1.22.6 go 1.22.6

View file

@ -1,4 +1,4 @@
module github.com/nesterow/dal/pkg/filters module github.com/nesterow/dal/pkg/filters/v0.0.0
go 1.22.6 go 1.22.6

View file

@ -1,4 +1,4 @@
module github.com/nesterow/dal/pkg/proto module github.com/nesterow/dal/pkg/proto/v0.0.0
go 1.22.6 go 1.22.6

View file

@ -1,4 +1,4 @@
module github.com/nesterow/dal/pkg/utils module github.com/nesterow/dal/pkg/utils/v0.0.0
go 1.22.6 go 1.22.6

View file

@ -1,18 +1,18 @@
{ {
"files": [
"dal/index.ts",
"dal/SQLite.ts",
],
"compilerOptions": { "compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext", "target": "ESNext",
"module": "ESNext", "module": "ESNext",
"moduleDetection": "force", "moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true, "allowJs": true,
// Bundler mode // Bundler mode
"moduleResolution": "bundler", "moduleResolution": "node",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"noEmit": true, "noEmit": false,
// Best practices // Best practices
"strict": true, "strict": true,
@ -22,6 +22,7 @@
// Some stricter flags (disabled by default) // Some stricter flags (disabled by default)
"noUnusedLocals": false, "noUnusedLocals": false,
"noUnusedParameters": false, "noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false "noPropertyAccessFromIndexSignature": false,
"outDir": "dist",
} }
} }