@sentio/action 4.1.0-rc.2 → 4.1.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
// NOTE: This config is intentionally plain JavaScript (not TypeScript). It is
|
|
2
|
+
// copied verbatim to @sentio/action/dist and loaded by `sentio build` from the
|
|
3
|
+
// user's node_modules, where Node refuses to strip types from .ts files. A .js
|
|
4
|
+
// config has no types to strip and loads natively everywhere. Keep it .js — do
|
|
5
|
+
// not rename to .ts. See packages/sdk/src/tsdown.config.js for the full rationale.
|
|
1
6
|
import { defineConfig } from 'tsdown'
|
|
2
7
|
|
|
3
8
|
// Force-keep every source module so tree-shaking never drops a self-registering
|
|
4
|
-
// handler (see packages/sdk/src/tsdown.config.
|
|
9
|
+
// handler (see packages/sdk/src/tsdown.config.js for rationale).
|
|
5
10
|
function sentioRegistrationGuard() {
|
|
6
11
|
return {
|
|
7
12
|
name: 'sentio-registration-guard',
|
|
@@ -10,7 +15,7 @@ function sentioRegistrationGuard() {
|
|
|
10
15
|
// Set the flag only (no code change) so the module is force-kept without
|
|
11
16
|
// counting as a transform (avoids a spurious broken-sourcemap warning).
|
|
12
17
|
handler() {
|
|
13
|
-
return { moduleSideEffects: 'no-treeshake'
|
|
18
|
+
return { moduleSideEffects: 'no-treeshake' }
|
|
14
19
|
}
|
|
15
20
|
}
|
|
16
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/action",
|
|
3
|
-
"version": "4.1.0-rc.
|
|
3
|
+
"version": "4.1.0-rc.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@bufbuild/protobuf": "^2.12.0",
|
|
22
22
|
"fastify": "^5.1.0",
|
|
23
|
-
"@sentio/protos": "4.1.0-rc.
|
|
24
|
-
"@sentio/runtime": "^4.1.0-rc.
|
|
23
|
+
"@sentio/protos": "4.1.0-rc.3",
|
|
24
|
+
"@sentio/runtime": "^4.1.0-rc.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"prettier": "^3.2.4",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build": "pnpm gen && pnpm compile",
|
|
35
35
|
"build:all": "pnpm --filter=$(node -p \"require('./package.json').name\")... build",
|
|
36
36
|
"build:bundle": "pnpm gen && pnpm bundle && pnpm bundle:dts",
|
|
37
|
-
"compile": "tsc && cp src/tsdown.config.
|
|
37
|
+
"compile": "tsc && cp src/tsdown.config.js dist",
|
|
38
38
|
"gen": "echo",
|
|
39
39
|
"test": "tsx --test 'src/**/*.test.ts'"
|
|
40
40
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
// NOTE: This config is intentionally plain JavaScript (not TypeScript). It is
|
|
2
|
+
// copied verbatim to @sentio/action/dist and loaded by `sentio build` from the
|
|
3
|
+
// user's node_modules, where Node refuses to strip types from .ts files. A .js
|
|
4
|
+
// config has no types to strip and loads natively everywhere. Keep it .js — do
|
|
5
|
+
// not rename to .ts. See packages/sdk/src/tsdown.config.js for the full rationale.
|
|
1
6
|
import { defineConfig } from 'tsdown'
|
|
2
7
|
|
|
3
8
|
// Force-keep every source module so tree-shaking never drops a self-registering
|
|
4
|
-
// handler (see packages/sdk/src/tsdown.config.
|
|
9
|
+
// handler (see packages/sdk/src/tsdown.config.js for rationale).
|
|
5
10
|
function sentioRegistrationGuard() {
|
|
6
11
|
return {
|
|
7
12
|
name: 'sentio-registration-guard',
|
|
@@ -10,7 +15,7 @@ function sentioRegistrationGuard() {
|
|
|
10
15
|
// Set the flag only (no code change) so the module is force-kept without
|
|
11
16
|
// counting as a transform (avoids a spurious broken-sourcemap warning).
|
|
12
17
|
handler() {
|
|
13
|
-
return { moduleSideEffects: 'no-treeshake'
|
|
18
|
+
return { moduleSideEffects: 'no-treeshake' }
|
|
14
19
|
}
|
|
15
20
|
}
|
|
16
21
|
}
|