Skip to content

Commit

Permalink
Remove tsup usage from libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Aug 8, 2024
1 parent 5b9f253 commit ffd5b9e
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 28 deletions.
7 changes: 4 additions & 3 deletions infra/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "10x ATJ secrets storage backend",
"type": "module",
"license": "CC0",
"main": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.js",
"scripts": {
"build": "node ./build.js",
"dev": "tsup src/* --watch",
"build": "tsc",
"dev": "tsc --watch",
"test": "vitest run --coverage"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion infra/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"emitDeclarationOnly": false,
"outDir": "./dist",
"emitDeclarationOnly": true,
"rootDir": "./src"
},
"include": ["./src"],
Expand Down
8 changes: 4 additions & 4 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "10x ATJ shared resources",
"type": "module",
"license": "CC0",
"main": "dist/index.cjs",
"types": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/* --env.NODE_ENV production",
"dev": "tsup src/* --watch"
"build": "tsc",
"dev": "tsc --watch"
},
"dependencies": {}
}
3 changes: 2 additions & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"emitDeclarationOnly": false,
"outDir": "./dist",
"emitDeclarationOnly": true
"rootDir": "./src"
},
"include": ["./src"],
"references": []
Expand Down
7 changes: 4 additions & 3 deletions packages/docassemble/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "10x ATJ docassemble adapter",
"type": "module",
"license": "CC0",
"main": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/* --env.NODE_ENV production",
"dev": "tsup src/* --watch",
"build": "tsc",
"dev": "tsc --watch",
"test:integration": "vitest run --coverage"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/docassemble/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"emitDeclarationOnly": false,
"module": "ESNext",
"outDir": "./dist",
"emitDeclarationOnly": true
"rootDir": "./src"
},
"include": ["./src"],
"references": []
Expand Down
7 changes: 4 additions & 3 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "10x ATJ form handling",
"type": "module",
"license": "CC0",
"main": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/* --env.NODE_ENV production",
"dev": "tsup src/* --watch",
"build": "tsc",
"dev": "tsc --watch",
"test": "vitest run --coverage"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/service/operations/add-form.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from '@atj/common';
import { Blueprint } from '../../..';
import { Blueprint } from '../../index.js';

import { addFormToStorage } from '../context/browser/form-repo';

Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/service/operations/get-form.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from '@atj/common';
import { type Blueprint } from '../../..';
import { type Blueprint } from '../../index.js';

import { getFormFromStorage } from '../context/browser/form-repo';

Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/service/operations/save-form.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from '@atj/common';
import { Blueprint } from '../../..';
import { Blueprint } from '../../index.js';

import { saveFormToStorage } from '../context/browser/form-repo';

Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/service/operations/submit-form.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';

import { createForm, createFormSession } from '../../..';
import { createForm, createFormSession } from '../../index.js';
import { createTestFormService } from '../context/test';

describe('submitForm', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/forms/src/service/operations/submit-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
createFormOutputFieldData,
fillPDF,
sessionIsComplete,
} from '../../..';
} from '../../index.js';

import { getFormFromStorage } from '../context/browser/form-repo';
import { getFormFromStorage } from '../context/browser/form-repo.js';

export const submitForm = async (
ctx: { storage: Storage; config: FormConfig },
Expand Down
5 changes: 3 additions & 2 deletions packages/forms/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"emitDeclarationOnly": true,
"outDir": "./dist"
"emitDeclarationOnly": false,
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["./src/**/*"],
"exclude": ["./dist"],
Expand Down
4 changes: 0 additions & 4 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
"noImplicitAny": true,
"resolveJsonModule": true,
"skipLibCheck": true,

"sourceMap": true,
"inlineSources": true,
"inlineSourceMap": true,

"strict": true,
"target": "ESNext"
}
Expand Down

0 comments on commit ffd5b9e

Please sign in to comment.