@edgeros/fs 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeros/fs",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "main" :"index.js",
5
5
  "scripts": {
6
6
  "build": "npx tsc",
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './src/fs'
1
+ export * from './fs'
package/tsconfig.json CHANGED
@@ -1,20 +1,28 @@
1
1
  {
2
- "extends": "@tsconfig/node20/tsconfig.json",
3
2
  "compilerOptions": {
4
- "declaration": true,
5
- "outDir": "dist",
6
- "inlineSourceMap": true,
7
- "inlineSources": true,
8
- "experimentalDecorators": true,
9
- "emitDecoratorMetadata": true,
10
- "allowJs": true,
11
- "checkJs": false,
12
- "strictNullChecks": true,
13
- "module": "commonjs",
14
- "moduleResolution": "node",
15
- "baseUrl": "."
3
+ /* Language and Environment */
4
+ "target": "es6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
5
+ "lib": [
6
+ "es6"
7
+ ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
8
+ /* Modules */
9
+ "module": "commonjs", /* Specify what module code is generated. */
10
+ "rootDir": "./src", /* Specify the root folder within your source files. */
11
+ "typeRoots": [
12
+ "./node_modules/@edgeros/jsre-types",
13
+ "./node_modules/@types",
14
+ ], /* Specify multiple folders that act like './node_modules/@types'. */
15
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
16
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
17
+ "outDir": "dist", /* Specify an output folder for all emitted files. */
18
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
19
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
20
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
16
21
  },
17
22
  "include": [
18
- "src/**/*",
23
+ "src/*",
24
+ ],
25
+ "exclude": [
26
+ "node_modules",
19
27
  ]
20
28
  }
package/Makefile DELETED
@@ -1,32 +0,0 @@
1
- .PHONY: build compile install clean publish ts-clean
2
-
3
- JSRE_MODULES_DIR = ./jsre_modules
4
- NODE_MODULES = ./node_modules
5
- JSRE_DEPENDENCIES = @edgeros/jsre-types @edgeros/jsre-tape
6
- TS_OUTDIR= ./dist
7
-
8
- install:
9
- npm i
10
-
11
- ts-clean:
12
- rm -rf $(TS_OUTDIR)
13
-
14
- compile: ts-clean
15
- tsc
16
-
17
- build: compile
18
- for dep in $(JSRE_DEPENDENCIES); do \
19
- mkdir -p $(JSRE_MODULES_DIR)/$$dep && \
20
- cp -r $(NODE_MODULES)/$$dep/* $(JSRE_MODULES_DIR)/$$dep; \
21
- done
22
-
23
- clean:
24
- rm -rf ./dist
25
- rm -rf ./node_modules
26
- rm -rf ./jsre_modules
27
-
28
- publish: compile
29
- cp .npmrc $(TS_OUTDIR)/
30
- cp package.json $(TS_OUTDIR)/
31
- cp README.md $(TS_OUTDIR)/
32
- cd $(TS_OUTDIR) && npm publish