Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit d7935bc

Browse files
Unbuild (#48)
* Unbuild * lock file
1 parent e664a4f commit d7935bc

33 files changed

+879
-1554
lines changed

.changeset/mean-garlics-tan.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@buape/experiments": patch
3+
"@buape/dotperms": patch
4+
"kiai.js": patch
5+
---
6+
7+
Switched to unbuild for compiling

.eslintrc.js

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,56 @@
11
module.exports = {
2-
root: true,
3-
// This tells ESLint to load the config from the package `eslint-config-custom`
4-
extends: ["custom"],
2+
env: {
3+
commonjs: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: [
8+
"plugin:@typescript-eslint/eslint-recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
],
11+
parser: "@typescript-eslint/parser",
12+
parserOptions: {
13+
ecmaVersion: "latest",
14+
},
15+
plugins: ["@typescript-eslint", "import"],
16+
rules: {
17+
quotes: ["error", "double", { allowTemplateLiterals: true }],
18+
semi: ["error", "never"],
19+
indent: ["error", 4, { SwitchCase: 1 }],
20+
"import/extensions": ["error", "never"],
21+
"max-len": ["error", { code: 250 }],
22+
"tsdoc/syntax": "off",
23+
"lines-between-class-members": [
24+
"error",
25+
"always",
26+
{ exceptAfterSingleLine: true },
27+
],
28+
"class-methods-use-this": "off",
29+
"no-underscore-dangle": "off",
30+
"implicit-arrow-linebreak": "off",
31+
"consistent-return": "off",
32+
"@typescript-eslint/ban-ts-comment": "off",
33+
"comma-dangle": "off",
34+
"function-paren-newline": ["error", "consistent"],
35+
"@typescript-eslint/no-unused-vars": "off",
36+
"@typescript-eslint/no-empty-function": "off",
37+
"no-plusplus": "off",
38+
"no-continue": "off",
39+
"no-restricted-syntax": "off",
40+
"no-case-declarations": "off",
41+
"import/prefer-default-export": "off",
42+
},
43+
ignorePatterns: ["dist/*"],
544
settings: {
6-
ignorePatterns: ["dist"],
7-
next: {
8-
rootDir: ["apps/*/"],
45+
"import/resolver": {
46+
node: {
47+
extensions: [".js", ".jsx", ".ts", ".tsx"],
48+
},
49+
typescript: {
50+
alwaysTryTypes: true,
51+
project: "./tsconfig.json",
52+
},
953
},
54+
ignorePatterns: ["dist"],
1055
},
1156
}

package.json

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
{
2-
"name": "@buape/utilities",
3-
"description": "Utility packages published by Buape Studios",
4-
"version": "0.0.0",
5-
"private": true,
6-
"scripts": {
7-
"build": "turbo run build",
8-
"dev": "dotenv -- turbo run dev",
9-
"pretty": "pnpm run format && pnpm run lint",
10-
"lint": "turbo run lint",
11-
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
12-
"preinstall": "only-allow pnpm",
13-
"clean": "turbo run clean",
14-
"changeset": "changeset add",
15-
"publish": "changeset version && pnpm run build && changeset publish",
16-
"test": "turbo run test",
17-
"docs": "turbo run docs"
18-
},
19-
"engines": {
20-
"node": ">=14.0.0"
21-
},
22-
"dependencies": {
23-
"@changesets/cli": "^2.26.0",
24-
"eslint-config-custom": "*",
25-
"prettier": "latest",
26-
"tsc-watch": "^6.0.0",
27-
"turbo": "latest"
28-
},
29-
"devDependencies": {
30-
"only-allow": "^1.1.1",
31-
"rimraf": "^5.0.0",
32-
"typedoc": "^0.24.0",
33-
"typescript": "^5.0.0",
34-
"vitest": "^0.30.0"
35-
},
36-
"workspaces": [
37-
"apps/*",
38-
"packages/*"
39-
],
40-
"packageManager": "[email protected]"
2+
"name": "@buape/utilities",
3+
"description": "Utility packages published by Buape Studios",
4+
"version": "0.0.0",
5+
"private": true,
6+
"scripts": {
7+
"build": "turbo run build",
8+
"dev": "dotenv -- turbo run dev",
9+
"pretty": "pnpm run format && pnpm run lint",
10+
"lint": "turbo run lint",
11+
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
12+
"preinstall": "only-allow pnpm",
13+
"clean": "turbo run clean",
14+
"changeset": "changeset add",
15+
"publish": "changeset version && pnpm run build && changeset publish",
16+
"test": "turbo run test",
17+
"docs": "typedoc"
18+
},
19+
"engines": {
20+
"node": ">=14.0.0"
21+
},
22+
"dependencies": {
23+
"@changesets/cli": "^2.26.0",
24+
"prettier": "latest",
25+
"tsc-watch": "^6.0.0",
26+
"turbo": "latest",
27+
"unbuild": "^1.2.0"
28+
},
29+
"devDependencies": {
30+
"only-allow": "^1.1.1",
31+
"rimraf": "^5.0.0",
32+
"typedoc": "^0.24.0",
33+
"typescript": "^5.0.0",
34+
"vitest": "^0.30.0"
35+
},
36+
"workspaces": [
37+
"apps/*",
38+
"packages/*"
39+
],
40+
"packageManager": "[email protected]"
4141
}

packages/dotperms/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/dotperms/package.json

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
11
{
2-
"name": "@buape/dotperms",
3-
"main": "./dist/index.js",
4-
"description": "A permissions utilities using permissions in the style of Minecraft",
5-
"typings": "./dist/index.d.ts",
6-
"type": "module",
7-
"version": "0.1.1",
8-
"author": {
9-
"name": "Shadow",
10-
"email": "[email protected]"
11-
},
12-
"scripts": {
13-
"lint": "eslint . --fix",
14-
"build": "tsc",
15-
"clean": "rimraf dist",
16-
"test": "vitest run"
17-
},
18-
"repository": {
19-
"type": "git",
20-
"url": "git+https://github.com/buape/utilities.git"
21-
},
22-
"license": "MIT",
23-
"bugs": {
24-
"url": "https://github.com/buape/utilities/issues"
25-
},
26-
"dependencies": {},
27-
"devDependencies": {
28-
"tsconfig": "workspace:*"
29-
},
30-
"files": [
31-
"dist"
32-
],
33-
"engines": {
34-
"node": ">=16.17.1"
35-
}
2+
"name": "@buape/dotperms",
3+
"description": "A permissions utilities using permissions in the style of Minecraft",
4+
"type": "module",
5+
"version": "0.1.1",
6+
"author": {
7+
"name": "Shadow",
8+
"email": "[email protected]"
9+
},
10+
"scripts": {
11+
"lint": "eslint . --fix",
12+
"build": "unbuild",
13+
"clean": "rimraf dist",
14+
"test": "vitest run"
15+
},
16+
"main": "./dist/index.cjs",
17+
"module": "./dist/index.mjs",
18+
"types": "./dist/index.d.ts",
19+
"exports": {
20+
".": {
21+
"types": "./dist/index.d.ts",
22+
"import": "./dist/index.mjs",
23+
"require": "./dist/index.cjs"
24+
}
25+
},
26+
"repository": {
27+
"type": "git",
28+
"url": "git+https://github.com/buape/utilities.git"
29+
},
30+
"license": "MIT",
31+
"bugs": {
32+
"url": "https://github.com/buape/utilities/issues"
33+
},
34+
"dependencies": {},
35+
"files": [
36+
"dist"
37+
],
38+
"engines": {
39+
"node": ">=16.17.1"
40+
}
3641
}

packages/dotperms/src/PermissionUser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-non-null-assertion */
2-
import { Permission, UserPermissions, UserPermissionSet } from "../typings"
2+
import { Permission, UserPermissions, UserPermissionSet } from "."
33

44
export class PermissionUser {
55
id: string

packages/dotperms/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./PermissionUser"
2+
export * from "./index.d"

packages/dotperms/tests/dotperm.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from "vitest"
2-
import { Permission, PermissionUser } from "../index"
2+
import { Permission, PermissionUser } from "../src/index"
33

44
const permissions: Permission[] = ["everything.*", "two.deep", "things.two.*", "three.deep.permission"]
55

packages/dotperms/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
2-
"extends": "tsconfig/base.json",
3-
"include": ["**/*.ts"],
4-
"exclude": ["dist", "node_modules", "tests"],
2+
"extends": "../../tsconfig.base.json",
3+
"include": ["src/*.ts"],
54
"compilerOptions": {
65
"outDir": "./dist",
7-
"esModuleInterop": true,
86
"rootDir": "."
97
}
108
}

0 commit comments

Comments
 (0)