chore: remove tsc build from local workspaces (#2020)

This commit is contained in:
Mo
2022-11-16 18:13:28 -06:00
committed by GitHub
parent 87e66e2342
commit 4fa8066402
31 changed files with 85 additions and 156 deletions

View File

@@ -1,11 +1,6 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
const base = require('../../common.jest.json')
module.exports = {
...base,
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
}
};
}

View File

@@ -5,19 +5,11 @@
"node": ">=16.0.0 <17.0.0"
},
"description": "Models used in SNJS library",
"main": "dist/index.js",
"author": "Standard Notes",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"main": "./src/index.ts",
"license": "AGPL-3.0-or-later",
"scripts": {
"clean": "rm -fr dist",
"prestart": "yarn clean",
"start": "tsc -p tsconfig.json --watch",
"prebuild": "yarn clean",
"build": "tsc -p tsconfig.json",
"tsc": "tsc -p tsconfig.json",
"lint": "eslint src --ext .ts",
"test": "jest"
},

View File

@@ -1,10 +0,0 @@
import { WorkspaceType } from '@standardnotes/common'
export type Workspace = {
uuid: string
type: WorkspaceType
name: string | null
keyRotationIndex: number
createdAt: number
updatedAt: number
}

View File

@@ -1,16 +0,0 @@
import { Uuid, WorkspaceAccessLevel, WorkspaceUserStatus } from '@standardnotes/common'
export type WorkspaceUser = {
uuid: Uuid
accessLevel: WorkspaceAccessLevel
userUuid: Uuid
userDisplayName: string | null
workspaceUuid: Uuid
encryptedWorkspaceKey: string | null
publicKey: string | null
encryptedPrivateKey: string | null
status: WorkspaceUserStatus
keyRotationIndex: number
createdAt: number
updatedAt: number
}

View File

@@ -12,7 +12,7 @@ export const isTheme = (x: ItemInterface): x is SNTheme => x.content_type === Co
export class SNTheme extends SNComponent {
public override area: ComponentArea = ComponentArea.Themes
public override readonly package_info!: ThemePackageInfo
public declare readonly package_info: ThemePackageInfo
isLayerable(): boolean {
return useBoolean(this.package_info && this.package_info.layerable, false)

View File

@@ -29,8 +29,6 @@ export * from './Api/Subscription/Invitation'
export * from './Api/Subscription/InvitationStatus'
export * from './Api/Subscription/InviteeIdentifierType'
export * from './Api/Subscription/InviterIdentifierType'
export * from './Api/Workspace/Workspace'
export * from './Api/Workspace/WorkspaceUser'
export * from './Device/Environment'
export * from './Device/Platform'
export * from './Local/KeyParams/RootKeyParamsInterface'

View File

@@ -1,13 +1,10 @@
{
"extends": "../../node_modules/@standardnotes/config/src/tsconfig.json",
"extends": "../../UILib.tsconfig.json",
"compilerOptions": {
"skipLibCheck": true,
"rootDir": "./src",
"outDir": "./dist",
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"references": [],
"include": ["src/**/*"],
"exclude": ["**/*.spec.ts"]
}