Skip to content

Commit 2674966

Browse files
committed
wip
1 parent 771f5f2 commit 2674966

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

packages/signals/signals-runtime/bundle-dts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ function filterLines(filePath, cb) {
6363

6464
const main = () => {
6565
const outFile = `dist/web-editor.d.ts`
66-
const command = `yarn dts-bundle-generator -o ${outFile} src/web-exports.ts --no-check`
66+
const command = `yarn dts-bundle-generator -o ${outFile} src/web/web-exports.ts --no-check`
6767
execSync(command, { stdio: 'inherit' })
6868
const outFileAbs = path.join(__dirname, outFile)
6969

7070
prependGenerated(outFileAbs)
7171

7272
// Append the contents of web-exports-globals.ts
73-
const globalsFilePath = path.join(__dirname, 'src/web-exports-globals.ts')
73+
const globalsFilePath = path.join(__dirname, 'src/web/web-exports-globals.ts')
7474
appendFileContents(outFileAbs, globalsFilePath)
7575
// remove any comments that use // like ts-ignore, ts-nocheck etc (/* */ is OK)
7676
filterLines(outFileAbs, (line) => !line.startsWith('//'))

packages/signals/signals-runtime/src/runtime-helpers.ts renamed to packages/signals/signals-runtime/src/shared/signals-runtime.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { BaseSignal, SignalOfType, ISignalsRuntime } from './types/shared'
1+
import {
2+
BaseSignal,
3+
SignalOfType,
4+
ISignalsRuntime,
5+
} from '../shared/shared-types'
26

37
/**
48
* SignalsRuntime class to manage signals

packages/signals/signals-runtime/src/web-exports-globals.ts renamed to packages/signals/signals-runtime/src/web/web-exports-globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// all import directives will be removed in the final build
2-
import { ISignalsRuntime } from './types/shared'
2+
import { ISignalsRuntime } from '../shared/shared-types'
33
import { Signal } from './web-exports'
44

55
// This will be appended to the generated code - dts-bundle-generator will not write declare const for whatever reason.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
* This is the public API for this package.
33
* We avoid using splat (*) exports so that we can control what is exposed.
44
*/
5-
export * from './types/web/signals'
5+
export * from './web-signals-types'
6+
export * from './web-exports-globals'
7+
export * from '../shared/shared-types'

0 commit comments

Comments
 (0)