@edgeros/fs 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/Makefile +22 -0
  2. package/package.json +1 -1
  3. package/tsconfig.json +12 -21
package/Makefile ADDED
@@ -0,0 +1,22 @@
1
+ .PHONY: compile install clean publish ts-clean
2
+
3
+ TS_OUTDIR= ./dist
4
+
5
+ install:
6
+ npm i
7
+
8
+ ts-clean:
9
+ rm -rf $(TS_OUTDIR)
10
+
11
+ compile: ts-clean
12
+ tsc
13
+
14
+ clean:
15
+ rm -rf ./dist
16
+ rm -rf ./node_modules
17
+
18
+ publish: compile
19
+ cp .npmrc $(TS_OUTDIR)/
20
+ cp package.json $(TS_OUTDIR)/
21
+ cp README.md $(TS_OUTDIR)/
22
+ cd $(TS_OUTDIR) && npm publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeros/fs",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "main" :"index.js",
5
5
  "scripts": {
6
6
  "build": "npx tsc",
package/tsconfig.json CHANGED
@@ -1,28 +1,19 @@
1
1
  {
2
+ "extends": "@tsconfig/node20/tsconfig.json",
2
3
  "compilerOptions": {
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. */
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"
21
15
  },
22
16
  "include": [
23
17
  "src/*",
24
- ],
25
- "exclude": [
26
- "node_modules",
27
18
  ]
28
19
  }