@sentio/action 4.0.0-rc.9 → 4.0.1-rc.1
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.
- package/dist/tsdown.config.ts +45 -0
- package/package.json +7 -7
- package/src/tsdown.config.ts +45 -0
- package/lib/tsup.config.ts +0 -24
- package/src/tsup.config.ts +0 -24
- /package/{lib → dist}/action-plugin.d.ts +0 -0
- /package/{lib → dist}/action-plugin.d.ts.map +0 -0
- /package/{lib → dist}/action-plugin.js +0 -0
- /package/{lib → dist}/action-plugin.js.map +0 -0
- /package/{lib → dist}/action-processor.d.ts +0 -0
- /package/{lib → dist}/action-processor.d.ts.map +0 -0
- /package/{lib → dist}/action-processor.js +0 -0
- /package/{lib → dist}/action-processor.js.map +0 -0
- /package/{lib → dist}/index.d.ts +0 -0
- /package/{lib → dist}/index.d.ts.map +0 -0
- /package/{lib → dist}/index.js +0 -0
- /package/{lib → dist}/index.js.map +0 -0
- /package/{lib → dist}/schema.d.ts +0 -0
- /package/{lib → dist}/schema.d.ts.map +0 -0
- /package/{lib → dist}/schema.js +0 -0
- /package/{lib → dist}/schema.js.map +0 -0
- /package/{lib → dist}/typed-action-processor.d.ts +0 -0
- /package/{lib → dist}/typed-action-processor.d.ts.map +0 -0
- /package/{lib → dist}/typed-action-processor.js +0 -0
- /package/{lib → dist}/typed-action-processor.js.map +0 -0
- /package/{lib → dist}/types.d.ts +0 -0
- /package/{lib → dist}/types.d.ts.map +0 -0
- /package/{lib → dist}/types.js +0 -0
- /package/{lib → dist}/types.js.map +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineConfig } from 'tsdown'
|
|
2
|
+
|
|
3
|
+
// Force-keep every source module so tree-shaking never drops a self-registering
|
|
4
|
+
// handler (see packages/sdk/src/tsdown.config.ts for rationale).
|
|
5
|
+
function sentioRegistrationGuard() {
|
|
6
|
+
return {
|
|
7
|
+
name: 'sentio-registration-guard',
|
|
8
|
+
transform: {
|
|
9
|
+
filter: { id: /\/src\/(.+\/)*.+\.ts$/ },
|
|
10
|
+
// Set the flag only (no code change) so the module is force-kept without
|
|
11
|
+
// counting as a transform (avoids a spurious broken-sourcemap warning).
|
|
12
|
+
handler() {
|
|
13
|
+
return { moduleSideEffects: 'no-treeshake' as const }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default defineConfig({
|
|
20
|
+
// Shipped to @sentio/action/dist and run against the user's project; pin cwd
|
|
21
|
+
// to the actual working directory (matches tsup's path resolution).
|
|
22
|
+
cwd: process.cwd(),
|
|
23
|
+
entry: {
|
|
24
|
+
lib: 'src/processor.ts'
|
|
25
|
+
},
|
|
26
|
+
format: 'esm',
|
|
27
|
+
platform: 'node',
|
|
28
|
+
// Emit lib.js (not lib.mjs) per package "type".
|
|
29
|
+
fixedExtension: false,
|
|
30
|
+
minify: true,
|
|
31
|
+
sourcemap: 'inline',
|
|
32
|
+
clean: true,
|
|
33
|
+
// A processor bundle needs no declarations.
|
|
34
|
+
dts: false,
|
|
35
|
+
plugins: [sentioRegistrationGuard()],
|
|
36
|
+
deps: {
|
|
37
|
+
alwaysBundle: [/.*/],
|
|
38
|
+
neverBundle: [/^@sentio\/(sdk|runtime|ethers).*$/],
|
|
39
|
+
onlyBundle: false
|
|
40
|
+
},
|
|
41
|
+
outputOptions: {
|
|
42
|
+
codeSplitting: false,
|
|
43
|
+
keepNames: true
|
|
44
|
+
}
|
|
45
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/action",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1-rc.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
|
-
".": "./
|
|
12
|
+
".": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
|
-
"
|
|
15
|
+
"dist",
|
|
16
16
|
"src",
|
|
17
17
|
"!**/*.test.*",
|
|
18
18
|
"!**/tests"
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@bufbuild/protobuf": "^2.12.0",
|
|
22
22
|
"fastify": "^5.1.0",
|
|
23
|
-
"@sentio/protos": "4.0.
|
|
24
|
-
"@sentio/runtime": "^4.0.
|
|
23
|
+
"@sentio/protos": "4.0.1-rc.1",
|
|
24
|
+
"@sentio/runtime": "^4.0.1-rc.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"prettier": "^3.2.4",
|
|
28
28
|
"typedoc": "^0.28.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
31
|
+
"node": ">=24.11.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
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/
|
|
37
|
+
"compile": "tsc && cp src/tsdown.config.ts dist",
|
|
38
38
|
"gen": "echo",
|
|
39
39
|
"test": "tsx --test 'src/**/*.test.ts'"
|
|
40
40
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineConfig } from 'tsdown'
|
|
2
|
+
|
|
3
|
+
// Force-keep every source module so tree-shaking never drops a self-registering
|
|
4
|
+
// handler (see packages/sdk/src/tsdown.config.ts for rationale).
|
|
5
|
+
function sentioRegistrationGuard() {
|
|
6
|
+
return {
|
|
7
|
+
name: 'sentio-registration-guard',
|
|
8
|
+
transform: {
|
|
9
|
+
filter: { id: /\/src\/(.+\/)*.+\.ts$/ },
|
|
10
|
+
// Set the flag only (no code change) so the module is force-kept without
|
|
11
|
+
// counting as a transform (avoids a spurious broken-sourcemap warning).
|
|
12
|
+
handler() {
|
|
13
|
+
return { moduleSideEffects: 'no-treeshake' as const }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default defineConfig({
|
|
20
|
+
// Shipped to @sentio/action/dist and run against the user's project; pin cwd
|
|
21
|
+
// to the actual working directory (matches tsup's path resolution).
|
|
22
|
+
cwd: process.cwd(),
|
|
23
|
+
entry: {
|
|
24
|
+
lib: 'src/processor.ts'
|
|
25
|
+
},
|
|
26
|
+
format: 'esm',
|
|
27
|
+
platform: 'node',
|
|
28
|
+
// Emit lib.js (not lib.mjs) per package "type".
|
|
29
|
+
fixedExtension: false,
|
|
30
|
+
minify: true,
|
|
31
|
+
sourcemap: 'inline',
|
|
32
|
+
clean: true,
|
|
33
|
+
// A processor bundle needs no declarations.
|
|
34
|
+
dts: false,
|
|
35
|
+
plugins: [sentioRegistrationGuard()],
|
|
36
|
+
deps: {
|
|
37
|
+
alwaysBundle: [/.*/],
|
|
38
|
+
neverBundle: [/^@sentio\/(sdk|runtime|ethers).*$/],
|
|
39
|
+
onlyBundle: false
|
|
40
|
+
},
|
|
41
|
+
outputOptions: {
|
|
42
|
+
codeSplitting: false,
|
|
43
|
+
keepNames: true
|
|
44
|
+
}
|
|
45
|
+
})
|
package/lib/tsup.config.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
export const external = []
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
esbuildOptions: (options) => {
|
|
7
|
-
options.banner = {
|
|
8
|
-
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url);`
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
entry: {
|
|
12
|
-
lib: 'src/processor.ts'
|
|
13
|
-
},
|
|
14
|
-
minify: true,
|
|
15
|
-
sourcemap: 'inline',
|
|
16
|
-
clean: true,
|
|
17
|
-
format: 'esm',
|
|
18
|
-
// dts: {
|
|
19
|
-
// resolve: true,
|
|
20
|
-
// },
|
|
21
|
-
publicDir: '../abis',
|
|
22
|
-
splitting: false,
|
|
23
|
-
external: [...external, /^@sentio\/(sdk|runtime|ethers).*$/]
|
|
24
|
-
})
|
package/src/tsup.config.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
export const external = []
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
esbuildOptions: (options) => {
|
|
7
|
-
options.banner = {
|
|
8
|
-
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url);`
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
entry: {
|
|
12
|
-
lib: 'src/processor.ts'
|
|
13
|
-
},
|
|
14
|
-
minify: true,
|
|
15
|
-
sourcemap: 'inline',
|
|
16
|
-
clean: true,
|
|
17
|
-
format: 'esm',
|
|
18
|
-
// dts: {
|
|
19
|
-
// resolve: true,
|
|
20
|
-
// },
|
|
21
|
-
publicDir: '../abis',
|
|
22
|
-
splitting: false,
|
|
23
|
-
external: [...external, /^@sentio\/(sdk|runtime|ethers).*$/]
|
|
24
|
-
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/schema.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/types.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/types.js
RENAMED
|
File without changes
|
|
File without changes
|