chore: release v0.0.1

main
CCherry07 8 months ago
parent 4e1510cd5d
commit 537678324d
  1. 36
      farm.config.ts
  2. 3164
      pnpm-lock.yaml
  3. 2
      src/deepSignal.ts
  4. 2
      tsconfig.json
  5. 13
      tsup.config.ts

@ -1,36 +0,0 @@
import { defineConfig } from '@farmfe/core';
import farmDtsPlugin from '@farmfe/js-plugin-dts';
const format = (process.env.FARM_FORMAT as 'esm' | 'cjs') || 'esm';
const ext = format === 'esm' ? 'mjs' : 'cjs';
export default defineConfig({
compilation: {
input: {
index: './src/index.ts',
},
output: {
path: `dist/${format}`,
entryFilename: `[entryName].${ext}`,
targetEnv: 'library',
format,
clean: false,
},
external: ['!^(\\./|\\.\\./|[A-Za-z]:\\\\|/|^@/).*'],
partialBundling: {
enforceResources: [
{
name: 'index',
test: ['.+'],
},
],
},
minify: false,
sourcemap: false,
presetEnv: false,
lazyCompilation: false,
persistentCache: true,
externalNodeBuiltins: false,
},
plugins: [farmDtsPlugin()],
});

File diff suppressed because it is too large Load Diff

@ -278,7 +278,7 @@ type DeepSignalArray<T> = DeepArray<ArrayType<T>> & {
export type Shallow<T extends object> = T & { [isShallow]: true };
export declare const useDeepSignal: <T extends object>(obj: T) => DeepSignal<T>;
// @ts-ignore
type FilterSignals<K> = K extends `$${infer P}` ? never : K;
type RevertDeepSignalObject<T> = Pick<T, FilterSignals<keyof T>>;
type RevertDeepSignalArray<T> = Omit<T, "$" | "$length">;

@ -22,6 +22,6 @@
"noFallthroughCasesInSwitch": true
},
"include": [
"./src",
"src"
]
}

@ -0,0 +1,13 @@
import type { Options } from 'tsup'
export const tsup: Options = {
entry: [
'src/*.ts',
],
format: 'esm',
dts: true,
splitting: true,
clean: true,
shims: false,
external:['alien-signals'],
}
Loading…
Cancel
Save