Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed Jun 6, 2023
1 parent c1d63b7 commit 318dea6
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 1,486 deletions.
1 change: 0 additions & 1 deletion form.d.ts → index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
declare module '@lancejpollard/script-tree'
declare module '@tunebond/call-text'
20 changes: 8 additions & 12 deletions form.ts → index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-explicit-any */
import pronunciation from './pronunciation.js'
import syllable from './syllable.js'
import st from '@lancejpollard/script-tree'

const D: Record<string, string> = {
Expand Down Expand Up @@ -340,16 +338,14 @@ const CONSONANTS: Array<Link> = [

const SYMBOLS = [...VOWELS, ...CONSONANTS]
const tree = st.fork(SYMBOLS) as any
const form = (text: string) => st.form(text, tree) as string
const make = (text: string) => st.form(text, tree) as string

form.SYMBOLS = SYMBOLS

form.VOWELS = VOWELS

form.CONSONANTS = CONSONANTS

form.list = (text: string) => st.list(text, tree)
form.pronunciation = pronunciation
form.syllable = syllable
const form = {
SYMBOLS: SYMBOLS,
VOWELS: VOWELS,
CONSONANTS: CONSONANTS,
// list: (text: string) => st.list(text, tree),
make,
}

export default form
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
{
"name": "@tunebond/tone",
"version": "2.0.0",
"version": "3.0.0",
"main": "host/form.js",
"type": "module",
"license": "Apache 2.0",
"dependencies": {
"@lancejpollard/script-tree": "^1.1.0"
},
"files": [
"host/form.js",
"host/form.js.map",
"host/syllable.js",
"host/syllable.js.map",
"host/pronunciation.js",
"host/pronunciation.js.map"
"host/index.js",
"host/index.js.map"
],
"devDependencies": {
"tsx": "^3.12.7",
Expand Down
Loading

0 comments on commit 318dea6

Please sign in to comment.