Skip to content

Commit a00d35f

Browse files
committed
wip
1 parent 92b7b06 commit a00d35f

File tree

9 files changed

+19
-178
lines changed

9 files changed

+19
-178
lines changed

packages/signals/signals-runtime/gen-editor-types.js

Lines changed: 0 additions & 113 deletions
This file was deleted.

packages/signals/signals-runtime/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"test": "yarn jest",
2222
"lint": "yarn concurrently 'yarn:eslint .' 'yarn:tsc --noEmit'",
2323
"build": "rm -rf dist && yarn concurrently 'yarn:build:*'",
24-
"build:editor-types": "node gen-editor-types.js",
24+
"build:editor-types": "node build-editor-types.js",
2525
"build:esm": "yarn tsc -p tsconfig.build.json",
2626
"build:cjs": "yarn tsc -p tsconfig.build.json --outDir ./dist/cjs --module commonjs",
2727
"build:global": "node build-signals-runtime-global.js",
@@ -45,7 +45,6 @@
4545
},
4646
"devDependencies": {
4747
"@internal/test-helpers": "workspace:^",
48-
"@microsoft/api-extractor": "^7.47.9",
49-
"dts-bundle-generator": "^9.5.1"
48+
"@microsoft/api-extractor": "^7.47.9"
5049
}
5150
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
import { SignalsRuntime } from '../shared/signals-runtime'
2+
import { ISignalsRuntime } from './index.mobile-editor'
3+
import { Signal } from './mobile-signals-types'
4+
5+
export type Signals = ISignalsRuntime<Signal>
6+
export const signals: Signals = new SignalsRuntime<Signal>()
17
/**
28
* This is the public API for this package.
39
* We avoid using splat (*) exports so that we can control what is exposed.
410
*/
511
export * from './mobile-signals-types'
612
export * from '../shared/shared-types'
7-
export * from './mobile-runtime'
13+
export * from './mobile-enums'

packages/signals/signals-runtime/src/mobile/mobile-runtime.ts renamed to packages/signals/signals-runtime/src/mobile/mobile-enums.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import { SignalsRuntime } from '../shared/signals-runtime'
2-
import { ISignalsRuntime } from './index.mobile-editor'
3-
import { Signal } from './mobile-signals-types'
4-
5-
export type Signals = ISignalsRuntime<Signal>
6-
export const signals: Signals = new SignalsRuntime<Signal>()
7-
81
export const SignalType = Object.freeze({
92
Interaction: 'interaction',
103
Navigation: 'navigation',
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
// all import directives will be removed in the final build
2+
import { SignalsRuntime } from '../shared/signals-runtime'
3+
import { ISignalsRuntime } from '../shared/shared-types'
4+
import { Signal } from './web-signals-types'
5+
6+
export type Signals = ISignalsRuntime<Signal>
7+
export const signals: Signals = new SignalsRuntime<Signal>()
8+
19
/**
210
* Entry point for the definitions
311
*/
412
export * from './web-signals-types'
513
export * from '../shared/shared-types'
6-
export * from './web-runtime'
14+
export * from './web-enums'

packages/signals/signals-runtime/src/web/web-runtime.ts renamed to packages/signals/signals-runtime/src/web/web-enums.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
// all import directives will be removed in the final build
2-
import { SignalsRuntime } from '../shared/signals-runtime'
3-
import { ISignalsRuntime } from '../shared/shared-types'
4-
import { Signal } from './web-signals-types'
5-
6-
export type Signals = ISignalsRuntime<Signal>
7-
export const signals: Signals = new SignalsRuntime<Signal>()
8-
91
export const EventType = Object.freeze({
102
Track: 'track',
113
Page: 'page',

packages/signals/signals-runtime/tsconfig.extractor.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

yarn.lock

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4329,7 +4329,6 @@ __metadata:
43294329
dependencies:
43304330
"@internal/test-helpers": "workspace:^"
43314331
"@microsoft/api-extractor": ^7.47.9
4332-
dts-bundle-generator: ^9.5.1
43334332
tslib: ^2.4.1
43344333
languageName: unknown
43354334
linkType: soft
@@ -11029,18 +11028,6 @@ __metadata:
1102911028
languageName: node
1103011029
linkType: hard
1103111030

11032-
"dts-bundle-generator@npm:^9.5.1":
11033-
version: 9.5.1
11034-
resolution: "dts-bundle-generator@npm:9.5.1"
11035-
dependencies:
11036-
typescript: ">=5.0.2"
11037-
yargs: ^17.6.0
11038-
bin:
11039-
dts-bundle-generator: dist/bin/dts-bundle-generator.js
11040-
checksum: e67b0a3d7e2e53035aa3940d15ae9d6e5a9894dc885c74c9b3118ca588076f24d4c817bfb267aa6b72ad86fc903adad5cfb5c1c79a55b2660ed7edceb4a6494f
11041-
languageName: node
11042-
linkType: hard
11043-
1104411031
"duplexer2@npm:~0.1.4":
1104511032
version: 0.1.4
1104611033
resolution: "duplexer2@npm:0.1.4"
@@ -22346,16 +22333,6 @@ __metadata:
2234622333
languageName: node
2234722334
linkType: hard
2234822335

22349-
"typescript@npm:>=5.0.2":
22350-
version: 5.5.4
22351-
resolution: "typescript@npm:5.5.4"
22352-
bin:
22353-
tsc: bin/tsc
22354-
tsserver: bin/tsserver
22355-
checksum: b309040f3a1cd91c68a5a58af6b9fdd4e849b8c42d837b2c2e73f9a4f96a98c4f1ed398a9aab576ee0a4748f5690cf594e6b99dbe61de7839da748c41e6d6ca8
22356-
languageName: node
22357-
linkType: hard
22358-
2235922336
"typescript@npm:^4.7.0":
2236022337
version: 4.9.5
2236122338
resolution: "typescript@npm:4.9.5"
@@ -22376,16 +22353,6 @@ __metadata:
2237622353
languageName: node
2237722354
linkType: hard
2237822355

22379-
"typescript@patch:typescript@>=5.0.2#~builtin<compat/typescript>":
22380-
version: 5.5.4
22381-
resolution: "typescript@patch:typescript@npm%3A5.5.4#~builtin<compat/typescript>::version=5.5.4&hash=1f5320"
22382-
bin:
22383-
tsc: bin/tsc
22384-
tsserver: bin/tsserver
22385-
checksum: fc52962f31a5bcb716d4213bef516885e4f01f30cea797a831205fc9ef12b405a40561c40eae3127ab85ba1548e7df49df2bcdee6b84a94bfbe3a0d7eff16b14
22386-
languageName: node
22387-
linkType: hard
22388-
2238922356
"typescript@patch:typescript@^4.7.0#~builtin<compat/typescript>":
2239022357
version: 4.9.5
2239122358
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
@@ -23892,7 +23859,7 @@ __metadata:
2389223859
languageName: node
2389323860
linkType: hard
2389423861

23895-
"yargs@npm:^17.6.0, yargs@npm:^17.7.2":
23862+
"yargs@npm:^17.7.2":
2389623863
version: 17.7.2
2389723864
resolution: "yargs@npm:17.7.2"
2389823865
dependencies:

0 commit comments

Comments
 (0)