Code Monkey home page Code Monkey logo

Comments (3)

eladb avatar eladb commented on May 27, 2024

Why would lib/ have read-only files?

from projen.

jialechan avatar jialechan commented on May 27, 2024
jialechan@CJL-macbook ~ $ mkdir my-project && cd my-project
jialechan@CJL-macbook ~/my-project $ git init
Initialized empty Git repository in /Users/jialechan/my-project/.git/
jialechan@CJL-macbook ~/my-project $ npx projen new jsii \
>   --name my-module \
>   --author-name "Elad Ben-Israel" \
>   --author-email "[email protected]" \
>   --repository "https://github.com/eladb/my-module.git"
npx: 36 安装成功,用时 2.909 秒
Project config created for "JsiiProject" project in .projenrc.js.
Now run `npx projen && yarn install` (or `pj` if you are one of the cool kids with an alias).
jialechan@CJL-macbook ~/my-project $ npx projen && yarn install
npx: 36 安装成功,用时 1.7 秒
yarn install v1.22.4
info No lockfile found.
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request > [email protected]: this library is no longer supported
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
[5/5] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 80.36s.
jialechan@CJL-macbook ~/my-project $ yarn build
yarn run v1.22.4
$ yarn test && yarn compile && yarn run package
$ yarn eslint && rm -fr lib/ && jest --passWithNoTests --updateSnapshot
$ eslint . --ext .ts
^C
jialechan@CJL-macbook ~/my-project $ sudo yarn build
yarn run v1.22.4
$ yarn test && yarn compile && yarn run package
$ yarn eslint && rm -fr lib/ && jest --passWithNoTests --updateSnapshot
$ eslint . --ext .ts
 PASS  test/hello.test.ts
  ✓ hello (2 ms)

----------|---------|----------|---------|---------|-------------------
File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files |     100 |      100 |     100 |     100 |
 index.ts |     100 |      100 |     100 |     100 |
----------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        1.757 s, estimated 3 s
Ran all test suites.
$ jsii --silence-warnings=reserved-word && jsii-docgen
$ jsii-pacmak
✨  Done in 11.59s.
jialechan@CJL-macbook ~/my-project $

'yarn build' not working.
'sudo yarn build' is ok

from projen.

pgollucci avatar pgollucci commented on May 27, 2024

This is not a bug in projen. This is due to the sudo. Also you would run npx projen build which include tests these days.

This is closable. @eladb

from projen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.