Skip to content

Commit

Permalink
fix: build issues (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD authored Sep 19, 2023
2 parents 3c0032c + 70b71e3 commit e83abcc
Show file tree
Hide file tree
Showing 15 changed files with 150 additions and 3,873 deletions.
2 changes: 1 addition & 1 deletion demo/finite-state-machine/light-machine.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {FiniteStateMachine} from '@alwatr/fsm2';
import {FiniteStateMachine} from '@alwatr/fsm';
import {delay} from '@alwatr/util';

type State = 'green' | 'yellow' | 'red' | 'flashingRed';
Expand Down
2 changes: 1 addition & 1 deletion demo/signal/context/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@alwatr/signal2/context</title>
<title>@alwatr/signal/context</title>
<script type="module" src="./index.js"></script>
<style>
html {
Expand Down
2 changes: 1 addition & 1 deletion demo/signal/context/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AlwatrContextSignal} from '@alwatr/signal2';
import {AlwatrContextSignal} from '@alwatr/signal';

const context = new AlwatrContextSignal<{name: string; age: number}>({name: 'user-info-context'});

Expand Down
2 changes: 1 addition & 1 deletion demo/signal/multithread-context/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AlwatrMultithreadContextSignal} from '@alwatr/signal2';
import {AlwatrMultithreadContextSignal} from '@alwatr/signal';

import './main.js';

Expand Down
2 changes: 1 addition & 1 deletion demo/signal/multithread-context/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {createLogger} from '@alwatr/logger';

import {messageContext} from './share-context.js';

const logger = createLogger('demo/signal2', true);
const logger = createLogger('demo/signal', true);

let i = 0;

Expand Down
2 changes: 1 addition & 1 deletion demo/signal/multithread-context/share-context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AlwatrMultithreadContextSignal} from '@alwatr/signal2';
import {AlwatrMultithreadContextSignal} from '@alwatr/signal';

import type {Stringifyable} from '@alwatr/type';

Expand Down
4 changes: 2 additions & 2 deletions demo/signal/multithread-context/worker.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {createLogger} from '@alwatr/logger';
import {AlwatrMultithreadContextSignal} from '@alwatr/signal2';
import {AlwatrMultithreadContextSignal} from '@alwatr/signal';

AlwatrMultithreadContextSignal.setupChannel();

import {messageContext} from './share-context.js';

const logger = createLogger('demo/signal2', true);
const logger = createLogger('demo/signal', true);

let i = 0;

Expand Down
2 changes: 1 addition & 1 deletion demo/signal/simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@alwatr/signal2/event</title>
<title>@alwatr/signal/event</title>
<script type="module" src="./index.js"></script>
<style>
html {
Expand Down
2 changes: 1 addition & 1 deletion demo/signal/simple/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AlwatrSignal, AlwatrSimpleSignal} from '@alwatr/signal2';
import {AlwatrSignal, AlwatrSimpleSignal} from '@alwatr/signal';

// button 1
const clickEvent = new AlwatrSimpleSignal({name: 'button-1-click-event'});
Expand Down
2 changes: 1 addition & 1 deletion packages/fsm/src/base.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import {AlwatrObservable} from '@alwatr/signal2/observable.js';
import {AlwatrObservable} from '@alwatr/signal/observable.js';

import type {ActionName, ActionRecord, StateEventDetail, StateRecord} from './type.js';
import type {MaybePromise} from '@alwatr/type';
Expand Down
2 changes: 1 addition & 1 deletion packages/server-context/src/server-request.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {fetch} from '@alwatr/fetch';
import {ActionRecord, FiniteStateMachineBase, StateRecord} from '@alwatr/fsm2';
import {ActionRecord, FiniteStateMachineBase, StateRecord} from '@alwatr/fsm';

import type {FetchOptions} from '@alwatr/fetch/type.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/signal/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alwatr Signal - `@alwatr/signal2`
# Alwatr Signal - `@alwatr/signal`

Elegant powerful event system for handle global signals and states written in tiny TypeScript module.

Expand Down
6 changes: 3 additions & 3 deletions packages/signal/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@alwatr/signal2",
"name": "@alwatr/signal",
"version": "2.0.0-prv",
"description": "Elegant powerful event system for handle global signals and states written in tiny TypeScript module.",
"keywords": [
Expand All @@ -22,9 +22,9 @@
"repository": {
"type": "git",
"url": "https://github.com/AliMD/alwatr-signal",
"directory": "packages/signal2"
"directory": "packages/signal"
},
"homepage": "https://github.com/AliMD/alwatr-signal/tree/next/packages/signal2#readme",
"homepage": "https://github.com/AliMD/alwatr-signal/tree/next/packages/signal#readme",
"bugs": {
"url": "https://github.com/AliMD/alwatr-signal/issues"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/signal/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export * from './multithread-context.js';
export * from './type.js';

globalAlwatr.registeredList.push({
name: '@alwatr/signal2',
name: '@alwatr/signal',
version: _ALWATR_VERSION_,
});
Loading

0 comments on commit e83abcc

Please sign in to comment.