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,19 +1,17 @@
// 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',
},
transform: {
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
},
coverageThreshold: {
global: {
branches: 6,
functions: 9,
lines: 13,
statements: 13
}
}
};
statements: 13,
},
},
}

View File

@@ -5,20 +5,12 @@
"node": ">=16.0.0 <17.0.0"
},
"description": "Services for Standard Notes SNJS library",
"main": "dist/index.js",
"main": "./src/index.ts",
"author": "Standard Notes",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"private": true,
"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 --project tsconfig.json",
"lint": "eslint src --ext .ts",
"lint:fix": "eslint src --ext .ts --fix",
"test": "jest spec --coverage"

View File

@@ -1,5 +1,5 @@
import { Uuid, WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
import { Workspace, WorkspaceUser } from '@standardnotes/models'
import { Workspace, WorkspaceUser } from '@standardnotes/api'
export interface WorkspaceClientInterface {
createWorkspace(dto: {

View File

@@ -1,7 +1,5 @@
import { WorkspaceApiServiceInterface } from '@standardnotes/api'
import { WorkspaceApiServiceInterface, Workspace, WorkspaceUser } from '@standardnotes/api'
import { Uuid, WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
import { Workspace, WorkspaceUser } from '@standardnotes/models'
import { InternalEventBusInterface } from '../Internal/InternalEventBusInterface'
import { AbstractService } from '../Service/AbstractService'
import { WorkspaceClientInterface } from './WorkspaceClientInterface'

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": [],
"exclude": ["**/*.spec.ts", "dist", "node_modules"]
"include": ["src/**/*"],
"exclude": ["**/*.spec.ts", "node_modules"]
}