@carpasse/dapi
Advanced tools
Comparing version 1.1.1-beta.1 to 1.1.1-beta.2
{ | ||
"type": "commonjs" | ||
"type":"commonjs", | ||
"types":"./index.d.ts", | ||
"main":"./index.js" | ||
} |
{ | ||
"type": "module" | ||
"type":"module", | ||
"types":"./index.d.ts", | ||
"main":"./index.js" | ||
} |
{ | ||
"name": "@carpasse/dapi", | ||
"version": "1.1.1-beta.1", | ||
"version": "1.1.1-beta.2", | ||
"description": "Simple library to create complex systems out of pure functions", | ||
@@ -42,4 +42,4 @@ "main": "./dist/cjs/index.js", | ||
"clean": "rimraf dist", | ||
"build:cjs": "tsc -p ./tsconfig.cjs.json && cat >dist/cjs/package.json <<!EOF\n{\n \"type\": \"commonjs\"\n}\n!EOF", | ||
"build:esm": "tsc --project tsconfig.esm.json && cat >dist/esm/package.json <<!EOF\n{\n \"type\": \"module\"\n}\n!EOF", | ||
"build:cjs": "tsc -p ./tsconfig.cjs.json && cat >dist/cjs/package.json <<!EOF\n{\n\"type\":\"commonjs\",\n\"types\":\"./index.d.ts\",\n\"main\":\"./index.js\"\n}\n!EOF", | ||
"build:esm": "tsc -p ./tsconfig.esm.json && cat >dist/esm/package.json <<!EOF\n{\n\"type\":\"module\",\n\"types\":\"./index.d.ts\",\n\"main\":\"./index.js\"\n}\n!EOF", | ||
"lint": "eslint './**/*.{js,jsx,ts,tsx}' && npm run typecheck", | ||
@@ -46,0 +46,0 @@ "lint:fix": "eslint './**/*.{js,jsx,ts,tsx}' --fix", |
@@ -18,3 +18,3 @@ # dapi | ||
```Typescript | ||
import {createDapi} from '@carpasse/'; | ||
import {createDapi} from '@carpasse/dapi'; | ||
@@ -157,3 +157,3 @@ type Dependencies = { | ||
```Typescript | ||
import {createDapi, DapiFn} from '@carpasse/'; | ||
import {createDapi, DapiFn} from '@carpasse/dapi'; | ||
import type {DapiUser, UserData} from './user'; | ||
@@ -450,3 +450,3 @@ import type {Logger} from './logger'; | ||
```Typescript | ||
import {createDapi} from '@carpasse/'; | ||
import {createDapi} from '@carpasse/dapi'; | ||
import {profile} from './profiler'; | ||
@@ -453,0 +453,0 @@ import {createPerson} from './person'; |
208414